static void ExampleOfInsertionUsingDialogbuttion(Args _args)
{
tblParent ParentTable;
DialogButton Db;
;
Db=Box::yesNo(“ARK”,DialogButton::Yes);
if(Db==DialogButton::Yes)
{
ParentTable.deptName=”SoftWare”;
ParentTable.deptNo=10;
try{
ParentTable.insert();
Box::info(“Insert Successfully…”);
}
catch(Exception::Info)
{
info(“Caught Catch Exception”);
}
}
else
{
info(“Notinserted.”);
}
}
{
tblParent ParentTable;
DialogButton Db;
;
Db=Box::yesNo(“ARK”,DialogButton::Yes);
if(Db==DialogButton::Yes)
{
ParentTable.deptName=”SoftWare”;
ParentTable.deptNo=10;
try{
ParentTable.insert();
Box::info(“Insert Successfully…”);
}
catch(Exception::Info)
{
info(“Caught Catch Exception”);
}
}
else
{
info(“Notinserted.”);
}
}
No comments:
Post a Comment