MSM-Workstation
Macros

Go back to the alphabetic list of macros
Go back to the first page of this tutorial

%%ResetSel ( Object , Variable [ , SubscriptType ] )

Reset the selections on a control.

Object The control whose selections are to be reset. If missing, default to the current control. The control should be a type that can take a list of choices (a list type, radio button, or table).

Variable The name of the variable containing the choices.

SubscriptType A single letter identifying the type of subscript in Variable, one of: A (application identifications), I (internal identifications), T (titles), R (rows), C (columns). Default is I. Rows and columns apply to table controls only.

The macro %%ResetSel causes the current selections in a control to be set from the list of already-set choices. It is primarily used to set the default selections in a control.

Pre-existing selections are first cleared. To add to existing selections without first clearing, use the macro %%SetSel.

Since the selections must be made from pre-existing choices, only a single subscript is supported. However, that subscript need not be an internal identifier.

Example

%%ResetSel(Drinks,DEFAULTS,T)
Set the value of the control called "Drinks" to the title-values contained in the local array DEFAULTS().

See also

%%Get, %%GetChoice, %%GetSel, %%Prop, %%Reset, %%ResetChoice, %%Set, %%SetChoice and %%SetSel.