User Tools

Site Tools


set_assign_value_to_a_user_defined_symbol_.htm
Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #SET (assign value to a user-defined symbol) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

#SET( symbol,value )

blk2blue.jpg

#SET Assigns a value to a single-valued user-defined symbol.
symbol A single-valued user-defined symbol. This must have been previously declared with the #DECLARE statement.
value A built-in or user-defined symbol, string constant, or an expression.

The #SET statement assigns the value to the symbol. If the value parameter contains an expression, you may perform mathematics during source code generation. The expression may use any of the arithmetic, Boolean, and logical operators documented in the Language Reference. If the modulus division operator (%) is used in the expression, it must be followed by at least one blank space (to explicitly differentiate it from the Template symbols). Logical expressions always evaluate to 1 (True) or 0 (False). Clarion language procedure calls (those supported in EVALUATE()) and built-in template procedures are allowed.

Example:

#SET(%NetworkApp,'Network')

#SET(%MySymbol,%Primary)

#FOR(%File)

#SET(%FilesCounter,%FilesCounter + 1)

%FileStructure

#ENDFOR

See Also:     #DECLARE

set_assign_value_to_a_user_defined_symbol_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1