Skip to content

Flow documentation · legacy product

VarIsEmpty ​

Declaration ​

Function VarIsEmpty( const V : Variant) : Boolean

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := VarIsEmpty(Field.Value)
end;

Description ​

Returns True if the Variant variable or field is unassigned. This is not normally used with Flow unless working with locally declared variables.

Variant fields from Data Definitions will be initialised to null and therefore can never be unassigned. Use VarIsNull function instead to test these fields.

This function is also unable to detect whether a Variant with a COM reference assigned to it has been cleared. You should use VarIsClear function instead.