Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Compatible Unicode Intrinsic Functions - IsGregorianDay Method

Panel
bgColor#2c3c4c

Test if the variable is a Gregorian day

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Boolean

True if the string is a valid Gregorian Day

Details

IsGregorianDay will return True if the variable can be converted to a valid Gregorian Day.

IsGregorianDay will often be used before AsGregorianDay to better handle potential errors.

Gregorian Day format is ---DD+HH:MM

Example

In this example, #Variable is tested before being assigned to #Result

     If (#Variable.IsGregorianDay)
#Result := #Variable.AsGregorianDay
Endif


See also

All Component Classes

Technical Reference