A "Begin Dialog UserDialog" statement must be added to the main sub routine in order to make the user dialog text box appear when the script is executed. In the example below, "550, 112" indicate where the dialog will appear on the user's screen, "Enter Run Date" is the name of the dialog, and ".DialogFucn" is the reference to the dialog function:
Begin Dialog UserDialog 550,112,"Enter Run Date",.DialogFunc
After the End Sub line, add this dialog function:
Function DialogFunc%(DlgItem$, Action%, SuppValue%)
See the attached user dialog example -- text box focus for an example script that uses this dialog text box function.
For more information, please see UserDialog Example in the in-program Help. For information about the Begin Dialog Statement and the dialog function, please see Begin Dialog Statement in the in-program BASIC Language Help (Click Automation | BASIC Language Help).
Updated August 2019