Description: This function returns its parameter with the byte order reversed.
Returns: Varies
Usage: Script or Steady State
Format: Reverse(Type, Value)
Parameters: Type { numeric } { required } { no default: }
Any numeric expression giving the type of the Value parameter.
|
Type |
Meaning |
|
1 |
Short |
|
2 |
Long |
|
3 |
Not supported |
|
4 |
Text |
Value { varies } { required } { no default: }
Any variable, expression, or constant. It can be of any type except object.
Comments: If Value is invalid, the return value is invalid.
Example:
oldA = 45 { 0b00000000 00101101 };
oldB = "Hello";
newA = Reverse(1, oldA);
newB = Reverse(4, oldB);
The value of newA will be 11 520 which is 0b00101101 00000000; newB will have a value of "olleH".
See Also: