Compatible Unicode Intrinsic Functions - IsGregorianMonth Method

Test if the variable is a Gregorian month

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)


Name Type Data Type Description
Result *Result (Optional) Boolean True if the string is a valid Gregorian Month


IsGregorianMonth will return True if the variable can be converted to a valid Gregorian Month.
IsGregorianMonth will often be used before AsGregorianMonth to better handle potential errors.
Gregorian Month format is --MM+HH:MM


In this example, #Variable is tested before being assigned to #Result
If (#Variable.IsGregorianMonth)
   #Result := #Variable.AsGregorianMonth

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020