SET CHOICE LIST

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0 (Modified)


SET CHOICE LIST ({*; }object; list)

ParameterTypeDescription
*If specified, object is an Object Name (String)
If omitted, object is a Field or a Variable
objectForm ObjectObject Name (if * is specified), or
Field or Variable (if * is omitted)
listStringName of the list to use as Choice list
(as defined in Design environment)

Description

The SET CHOICE LIST command sets or replaces the choice list associated with the object or group of objects specified by object to the choice list (defined in the Design environment List Editor) whose name you pass in list.

This command can be applied in an input or dialog form, to fields and enterable variables whose value can be entered as text. The choice list is displayed during data entry when the user selects the text area.

If you specify the optional * parameter, you indicate an object name (a string) in object. If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or variable reference (field or variable objects only) instead of a string. For more information about object names, see the section Object Properties.

Note: This command cannot be used with fields located in a subform's list form.

Example

The following example sets a choice list for a shipping field. If the shipping is overnight, then the choice list is set to shippers who can ship overnight. Otherwise, it is set to the standard shippers:

   If ([Shipments]Overnight)
      SET CHOICE LIST([Shipments]Shipper; "Fast Shippers")
   Else
      SET CHOICE LIST([Shipments]Shipper; "Normal Shippers")
   End if


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next