General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XFT Cancel
-
edporterIII September 21, 2015 at 1:57 pm
XFT Cancel
September 21, 2015 at 1:57 pmParticipants 0Replies 1Last Activity 7 years, 4 months agoIs 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 Cancel
September 21, 2015 at 7:39 pmIf 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();
Application.Alert(returnVal);
dlg=null;
[/code]Launching your form using similar code will allow you to check the various return values it might pass back.
-
AuthorPosts
- You must be logged in to reply to this topic.