General XMetaL Discussion
edporterIII September 21, 2015 at 1:57 pm
XFT CancelSeptember 21, 2015 at 1:57 pmParticipants 0Replies 1Last Activity 7 years ago
Is it possible for a macro that launches an XFT to detect that the user closed the form via the cancel button or for a form to pass a variable back to the macros that would not be reflected in the XML document itself?Derek Read September 21, 2015 at 7:39 pm
Reply to: XFT CancelSeptember 21, 2015 at 7:39 pm
If the XFT is launched using DoModal() the return value should be 2 in your case.
Try running this example code:
[code]//XMetaL Script Language JScript:
var dlg = Application.CreateFormDlg(Application.Path + “\Forms\ULink.xft”);
var returnVal = dlg.DoModal();
Launching your form using similar code will allow you to check the various return values it might pass back.
- You must be logged in to reply to this topic.