---
url: /flow/guide/scripting-reference/classes/data-set/dataset.first.md
---

# Dataset.First

## Declaration

`procedure First;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  DATASET.First; //move to the first record
end;
```

## Description

Moves to the first record in the dataset and makes this the active record. Also refer to [Dataset.RecordPosition](/flow/guide/scripting-reference/classes/data-set/dataset.recordposition) for moving to a specific record.
