Skip to content

Flow documentation · legacy product

Field.AsString ​

Declaration ​

property AsString: string;

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Dataset['myfield'].AsString; //the value of myfield is returned as a String
end;

Description ​

Returns the value of the Field object as a String (String, Widestring). If the field is null then a blank string is returned.

It is recommended that you use this property when referencing String type fields. This will help you avoid issues with null values causing String functions to fail.