AskStringChoice$

 

Purpose:

Prompts the user to choose a value for the specified variable from a combobox at print time.

Parameter:

String          Text, which is displayed and should specify what is to be entered.

Boolean       (optional) Sets whether the dialog should be shown once prior to printing (default, FALSE), or if the dialog should be shown for each record (TRUE).

String                 (optional) The combobox entries. The single entries of the combo box are separated by "|". If one of the entries is '***' (three asterisks), the text is editable. So a new value which may be different from the list items can be entered.

Number            (optional) Maximum length (Default: 8192 characters).

Return value:

String

Example:

AskStringChoice$ ("Document type".F.,"Offer|Invoice|Delivery note|***)