Home Forums General XMetaL Discussion Dialogs Requesting Author Input Reply To: Dialogs Requesting Author Input

Derek Read

Reply to: Dialogs Requesting Author Input

The simplest would be a single line of code similar to the following example:

[code]//Example showing how to obtain user input and store the
//return value (what the user enters) in a JScript variable.
//First argument is the display text (the “prompt”).
//Second, and optional, argument is suggested text the user may opt to type over in the text area.
var myVariable = Application.Prompt(“Enter some text”, “default text”);[/code]

You can also launch a custom XFT dialog (XFT is XMetaL's own binary compiled version of a dialog, similar but not the same as those you might create using Visual Basic). These are designed using the XMetaL Forms Toolkit (form designer) that comes with XMetaL Developer. That APIs related to launching such a form are documented in the Programmers Guide and are CreateFormDlg() and DoModal().