Navigation:  thinBasic Modules > Core > General >

Swap

Previous pageReturn to chapter overviewNext page

 

Description

 

Swap the content of two variables.

 

Syntax

 

Swap Var1, Var2

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

Var1

Any

No

Any variable name.

Var2

Any

No

Any variable name.

 

Remarks

 

Var1 and Var2 must be single variable names already declared. Expressions will generate a runtime error.

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com