<varchng> Modifies (changes) variable's value.

Command Tree: | Variables \ Modify
. |
Syntax: | <varchng>("Variable", "Operation", "Operand")
Variable | Variable.
Operation | There are these operations available: "A" - appends string (Operand) to the Variable. "L" - extracts left substring and saves it in the Variable. The number of the characters extracted is specified by Operand. "R" - extracts right substring and saves it in the Variable. The number of the characters extracted is specified by Operand. "UC" - converts the Variable string to uppercase. "LC" - converts the Variable string to lowercase. "LNT" - saves the length of the string defined by Operand in the Variable. "+" - Variable = Variable + Operand. "-" - Variable = Variable - Operand. "*" - Variable = Variable * Operand. "/" - Variable = Variable / Operand. "SF" - select file. A "select file" dialog is shown and the file (full path) the user selects is saved in the Variable. The initial path is defined by Variable. The Operand is not used. "SD" - select folder (directory). A "select folder" dialog is shown and the directory (full path) the user selects is saved in the Variable. The initial path is defined by Variable. The Operand is not used. "GC" - get clipboard. The text from clipboard is saved in the Variable.
Operand | Depends on the Operation above.
. |
. |
Example: | <#> This macro demonstrates <varchng> command <#> <commands_only_on> <varchng>("vFile","SF","") <varset>("vFileUppercase=vFile","") <varchng>("vFileUppercase","UC","") <msg>(100,100,"vFileUppercase","File Selected",1)