TryInt64
Native Pascal, workflow preparation
Description
Converts a wjNumber node to an Int64 when its stored text is an exact integer spelling: an optional leading minus, decimal digits with no leading zero except a lone zero, no fraction and no exponent, and a value within the signed 64-bit range.
Every other text, an empty text, or a node of another kind returns False and leaves Value at 0.
Syntax
Delphi
Function TPLWorkflowJSON.TryInt64(Out Value: Int64): Boolean;Parameters
| Value | Receives the converted number; set to 0 when the conversion fails |
|---|
Return values
| True | The node is a number with an exact integer spelling and Value holds it |
|---|---|
| False | The node is not a number or its text is not an exact integer; Value is 0 |