Equinox Online Help - Language Reference - A to Z
PickList |
|
---|---|
Applies to | |
Syntax | PickList (OptionsExpression [, SwitchExpression]) |
Action | [Function] Presents you with a list of options from which to choose. |
Scope | Usable anywhere. |
Notes | This function creates a dialog displaying a list of options. You are prompted to select one of the items from the list. OptionsExpression contains the options that appear in the list and is a string which has the following format. "/option 1/option 2/option 3 ..." The first character (forward slash) is the separator for each option. The optional argument, SwitchExpression, specifies whether or not buttons appear on the dialog. If SwitchExpression evaluates to True, OK and Cancel buttons appear on the dialog. If it is False, then no buttons appear. If omitted, SwitchExpression defaults to False. When you select an option, it is returned (as a string). The function also sets the system workarea SysResult to the number of items selected, and SysReply to one of the following values:
NOTES: If the number of items in the picklist drop down is less than 4, the scroll bar will not appear, even if it is configured to appear in the PopUpFlags statement. A pickList can be made multi-selectable by the use of the PopUpFlags 64 statement. The data collected can be manipulated with the PickListSelection statement. |
Category | Pick lists |
See Also | Pick_PickRecord, PickCaptions, PickColumnWidths, PickFields, PickListSelection, PickRange_PickRecordRange, PickSelection, PickWrite_PickRecordWrite |
Example | This method (attached to a Before Field event on a form) allows the user to select a value for the field. The user selects a value from the list and the input focus is moved to the age field. string s This example demonstrates how to enable multi-selectable lists and how to manipulate the data selected: number iIndex, iSelections |