Swap32

Swaps two words in a tag.

Function Group Execution Windows Embedded Thin Client Mobile Access
Swap32 Arithmetic Synchronous Supported Supported Supported Supported

Syntax

  Swap32( numValue )  
numValue
Integer tag that holds the numeric value of the words to be swapped.

Returned value

Returns the numeric value after swapping the words.

Examples

Tag Name Expression
Tag Swap32( 16 ) // 16 = 00000000000000000000000000010000 in binary. Returned value = 1048576 = 00000000000100000000000000000000 in binary.
Tag Swap32( 246333120 ) // 286333120 = 1010101010101010101111111100000000 in binary. Returned value = -1094709586= 11111111000000001010101010101010 in binary.

Swap32