Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.
Parse integer
Try to convert a string to a value that is of data type Integer/Long.
parseInteger
Take a string and try to parse it to an Integer/Long.
Input parameters
- The string to parse Type: String
- (Optional) Default value Type: Integer/Long
Output
An Integer/Long if it is possible to parse it from the string.
If the string cannot be parsed to an Integer/Long, for example, if the string is not a number or if the parsed value is not within the range of the valid values for an Integer/Long, the default value will be returned. If no default value is provided, an error will occur.
Type: Integer/Long
|
|
returns:
|
|
with default value:
|
|
returns:
|
|