IntParse Method (RUNTIME)
10.3A
The IntParse method parses an input character string and returns a numeric value based on the format of the input characters. This method uses the following format:
|
|
|
|
|
|
|
|
Where:
Optional. A Program Execution Label.
Required. A RUNTIME object.
Optional. A Numeric Variable that returns the numeric value as parsed from the input {numstring}
Required. A Character String Variable or string literal that specifies character string to be parsed. This string is parsed for a format determined by the {format} parameter.
Flags Affected: EOS, OVER, ZERO
Note the following:
If the {return} value is zero, The ZERO flag is set.
The OVER flag is set if the {return} variable is too small to receive the numeric result.
The EOS flag is always set to FALSE.
The {format} values are described as follows:
|
Value |
Description |
|
0 |
If the {format} parameter is not specified, this is the default format value used. When the {format} is zero, this method parses the {numstring} as a hexadecimal characters ( 0 to F) if the string starts with '0x'. Otherwise, this method parses the {numstring} as decimal characters ( 0 to 9 ). The parsing stops when the first invalid character as per the format is detected. |
|
1 |
This format only parses the input {numstring} as hexdecimal string formatted as '0xXXXXXXXX'. Example: '0x12abc' |
|
n < 0 |
The return result is zero. |
|
n > 1 |
The return result is zero. |
Examples:
See Also: RUNTIME, RUNTIME Methods, Method Syntax
![]() |