This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Swap the content of two variables.
Syntax
Swap Var1, Var2
Swap (Var1, Var2)
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
Var1 |
Any |
No |
Any variable name. |
Var2 |
Any |
No |
Any variable name. |
Remarks
Swap can exchange the following variable types:
1.any numeric variable
2.any string variable
3.any numeric array element
4.any string array element
5.any UDT variable
6.any UDT array element
Restrictions
Var1 and Var2 must be single variable names already declared.
Expressions will generate a runtime error.
See also
Examples