Unicode Intrinsic Functions - IsGregorianYear Method
Test if the variable is a Gregorian year
Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)
| Name | Type | Data Type | Description |
|---|---|---|---|
| Result | *Result (Optional) | Boolean | True if the string is a valid Gregorian Year |
IsGregorianYear will return True if the variable can be converted to a valid Gregorian Year. IsGregorianYear will often be used before AsGregorianYear to better handle potential errors. Gregorian Year format is CCYY+HH:MM
In this example, #Variable is tested before being assigned to #Result
If (#Variable.IsGregorianYear) #Result := #Variable.AsGregorianYear Endif
Febuary 18 V14SP2