You are here: Scripting Reference > Classes > Field > Field.FieldType

Field.FieldType

Declaration

property FieldType: See "TFieldType"

Example

procedure OnMapEvent(var Value:Variant);

begin

if Dataset['myfield'].FieldType = ftInteger then

Value := Dataset['myfield'].AsInteger;

end;

Description

Returns the data type of the field. Can be used to determine what data type the field is so that you can accurately work with the data.