User Tools

Site Tools


where_define_code_embed_point_availability_.htm
Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #WHERE (define #CODE embed point availability) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

#WHERE( embeds )

blk2blue.jpg

#WHERE Limits the availability of a #CODE to only those specific embedded source code points where the generated code would be appropriate.
embeds A comma-delimited list of #EMBED identifiers that specifies the embedded source code points that may use the #CODE to generate source code.

The #WHERE statement limits the availability of a #CODE to only those #EMBED embedded source code points where the generated code would be appropriate. A single #CODE may contain multiple #WHERE statements to explicitly define all the valid #EMBED embedded source code points. All the #WHERE statements in a #CODE are evaluated to determine which embedded source code points have been specifically enabled.

The embeds list must contain individual #EMBED identifiers delimited by commas. It may also contain ranges of embed points in the form FirstIdentifier..LastIdentifier, also delimited by commas. The embeds list may contain both types in a “mix and match” manner to define all suitable embedded source code points.

Example:

#CODE(ChangeProperty,'Change control property')

#WHERE(%AfterWindowOpening..%CustomRoutines)  #!Appropriate everywhere after window open

 #PROMPT('Control to change',CONTROL),%MyField,REQ

 #PROMPT('Property to change',@S20),%MyProperty,REQ

 #PROMPT('New Value',@S20),%MyValue,REQ

%MyField{%MyProperty} = '%'MyValue

See Also:     #EMBED ,##CODE ,##RESTRICT

where_define_code_embed_point_availability_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)