static void Simple_Dialog(Args _args)
{
dialog dialog;
dialogGroup dialogGroup;
dialogField dialogField;
Filename filename;
dialog = new Dialog("Simple Dialog"); //Header
dialogGroup = dialog.addGroup("Customer"); // Group Name
dialogField = dialog.addField(extendedTypeStr(FilenameOpen)); //FilenameOpen is an EDT
if (dialog.run())
{
filename = dialogField.value();
if(filename)
{
print dialogField.value();
pause;
}
else
{
info("file does not exists")
}
}
///The dialog.run() method returns true if OK is clicked, and false if Cancel is clicked.
{
dialog dialog;
dialogGroup dialogGroup;
dialogField dialogField;
Filename filename;
dialog = new Dialog("Simple Dialog"); //Header
dialogGroup = dialog.addGroup("Customer"); // Group Name
dialogField = dialog.addField(extendedTypeStr(FilenameOpen)); //FilenameOpen is an EDT
if (dialog.run())
{
filename = dialogField.value();
if(filename)
{
print dialogField.value();
pause;
}
else
{
info("file does not exists")
}
}
///The dialog.run() method returns true if OK is clicked, and false if Cancel is clicked.