<set> tag
Defines the action for setting a global variable. The attributes of the <set> tag are:
- enabled
- Indicates whether this action is enabled for use. The default is true.
- name
- Specifies the name of the global variable being set. This can be an existing global variable or a new global variable.
- shared
- Specifies whether the global variable being set is shared between applications running in the same rich client environment.
- type
- Specifies whether the value of the global variable being set comes from a fixed constant or a calculated value. Valid values are string and calculate.
- value
- Specifies the value being assigned to the global variable.
- overwrite
- Specifies whether the value being set is to overwrite the value of an existing global variable. Valid values are true and false.
- index
- If the value being set is being written to an existing indexed global variable, this attribute specifies the index number to which the value being set is written. The effect of this attribute is dependent on the value of the overwrite attribute. If overwrite=true, the value being set overwrites the existing variable, beginning at the specified index. If overwrite=false, the value being set is inserted into the existing variable, beginning at the specified index.
- op1
- Specifies whether the first operand of a calculated value is a fixed constant or the value of an existing global variable. Valid values are a fixed constant or the name of a global variable.
- op1_type
- Specifies whether the value of the first operand of a calculated value is set as a fixed constant or from an existing global variable. Valid values are string and variable.
- op1_index
- If the source of the value of the first operand of a calculated value is an indexed global variable, op1_index specifies the number of the index used as the value for the calculation.
- op1_shared
- If the value of op1 is a global variable, shared specifies whether this global variable is shared between applications running in the same rich client environment.
- op
- Specifies the type of operation to occur between the first and second operands of a calculated value. Valid values are concatenate, + (add), - (subtract), * (multiply), / (divide), and % (modulo).
- op2
- Specifies whether the second operand of a calculated value is a fixed constant or the value of an existing global variable. Valid values are a fixed constant or the name of a global variable.
- op2_type
- Specifies whether the value of the second operand of a calculated value is set as a fixed constant or from an existing global variable. Valid values are string and variable.
- op2_index
- If the source of the value of the second operand of a calculated value is an indexed global variable, op2_index specifies the number of the index used as the value for the calculation.
- op2_shared
- If the value of op2 is a global variable, shared specifies whether this global variable is shared between applications running in the same rich client environment.
- dec
- Specifies the number of decimal places to which a calculated value is rounded. Valid values are 0–999.