IntToString Method (RUNTIME)
10.3A
The IntToString method converts an integer value into a decimal or hexadecimal character format that is returned in a Character String Variable. This method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Optional. A Program Execution Label.
Required. A RUNTIME object.
Optional. A Character String Variable that returns characters formatted as identified by the {format} type.
Required. A Numeric Variable or decimal number that specifies a value that identifies the character string format to be returned.
options
Optional. A Numeric Variable or decimal number that is a bitmask value that defines the integer value range ( whole value, low order byte, or low order word ).
Flags Affected: EOS, OVER, ZERO
Note the following:
The EOS flag is set TRUE if the {return} Character String variable is too small to receive the directory data without being truncated.
The ZERO and OVER flags are always cleared.
The {format} values are described as follows:
|
Value |
Description |
|
0 |
The integer value is converted into decimal characters and returned in a 'ddddd' format. |
|
1 |
The integer value is converted into hexadecimal characters and returned in a '0xXXXXXXXX' format. |
|
n < 0 |
The return string is NULL. |
|
n > 1 |
The return string is NULL. |
The {options} bit mask values are described as follows:
|
Value |
Description |
|
0 |
No change from previous behaviors when {options} not used. |
|
1 |
Return as unsigned, no leading zeros. |
|
2 |
Return the bottom byte as unsigned, 2 digits for hex. |
|
4 |
Return the bottom word as unsigned, 4 digits for hex |
Examples:
See Also: RUNTIME, RUNTIME Methods, Method Syntax
![]() |