Obtaining User Input via a Dialog With AskString$()

combit List & Label Designer

combit List & Label

Obtaining User Input via a Dialog With AskString$()

You can use the "AskString$()" function to obtain information from the user during the print process. A dialog appears when printing in which the user is required to enter the information that you need.

The first parameter contains the text for the request that is to appear in the dialog.

With the second parameter, you can specify whether the user request is only to appear once when printing starts (default: False), or whether the information is to be requested for each individual data record (True).

The third parameter contains the string that you want to display as a recommended value in the dialog's input field.

The last parameter specifies the maximum number of characters that the user may enter. Example:

AskString$ ("Insert Subject",False,"Your request from " + Date$(Now()))

Figure 10.12: Input dialog with AskString$()