General XMetaL Discussion

  • edporterIII

    XFT Cancel

    Participants 0
    Replies 1
    Last 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?

    Reply

    Derek Read

    Reply to: XFT Cancel

    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();
    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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support