Class classBuffer;
Table table;
boolean canImport = true;
if(table.ExcelImported) //ExcelImported is the Table field(Enum NoYes)
{
if(Box::yesNo('Do you want to import.', DialogButton::Yes,'Import Record') == DialogButton::Yes)
{
canImport = true;
}
else
{
canImport = false;
}
}
//if(canImport)
//{
//if(classBuffer.prompt())
//{
//try
//{
//classBuffer.run(); //is the method
//}
//catch(Exception::Error)
//{
//classBuffer.closeExcelAppl(); //is the method
//}
//}
//}
//else
//{
//warning('Operation cancelled.');
//}