#WITH (associate prompts with a symbol instance) 

Top  Previous  Next

 

#WITH( symbol , value )

    prompts

#ENDWITH

#WITH

Allows a set of prompts to be associated with a single instance of a symbol (as specified by the value expression).

symbol

A previously declared unique multi-valued template symbol.

value

A string expression containing a unique value to add to the symbol.

prompts

One or more #PROMPT statements whose values become dependent on the value of the symbol. This may also contain #DISPLAY, #VALIDATE, #ENABLE, and #BUTTON statements.

#ENDWITH

Terminates the group of prompts associated with the #WITH symbol.

The #WITH statement adds a new instance to the symbol (as specified by the value expression) and makes the values of all the prompts dependent upon that instance. #WITH allows the same set of prompts, with the same prompt symbols, to be used more than once on the same screen.

Example:

#WITH(%ClassItem,'Default')

#INSERT(%ClassPrompts)

#ENDWITH

See Also:     #PROMPT ,#VALIDATE ,#ENABLE ,#DISPLAY ,#BUTTON