我目前正在 cobol2 中创建我的项目 .. 我正在使用 microfocus 的可视化 cobol 并为我的数据库使用 Ado.net .. 在 openesql 助手的界面上,我可以在我的数据库表中插入值.. 但在表单上我的项目在按钮 1 上单击时出现错误提示“未设置 SQL 指令”
(这是我的代码
method-id button1_Click final private.
procedure division using by value sender as object e as type System.EventArgs.
EXEC SQL
INSERT INTO NayreInventory
(ItemCode
,ItemDescription
,Quantity
,Price
) VALUES (
:NayreInventory-ItemCode:NayreInventory-ItemCode-0001
,:NayreInventory-ItemDescription:Col-2-MEDICOL
,:NayreInventory-Quantity:NayreInventory-Quantity-5
,:NayreInventory-Price:NayreInventory-Price-150
)
END-EXEC.
invoke type MessageBox::Show("1 RECORD HAS BEEN SUCCESSFULLY ADDED", "RESULT")
end method.
)如何摆脱错误..请帮助我..我真的不需要你的帮助..