String Intrinsic Functions - IsFloat Method

Test whether the string is a valid float

Member of String Intrinsic Functions (PRIM_LIBI.IStringIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the string is a valid duration

Details

IsFloat will return True if the variable can be converted to a valid floating point number.
 
IsFloat will often be used before AsFloat to better handle potential errors.

Example

In this example, #Variable is tested before being assigned to #Result
If (#Variable.IsFloat)
   #Result := #Variable.AsFloat
Endif

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2