---
url: /flow/guide/scripting-reference/classes/field/field.fieldtype.md
---

# Field.FieldType

## Declaration

property FieldType: See [TFieldType](/flow/guide/scripting-reference/data-types/enumerations/tfieldtype)

### Example

```pascal
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.
