Position as Int

BPak

Active Member
Licensed User
Longtime User
I am not understanding the part about -1 in the Position Help section.

Position As Int
Gets or sets the current position (row).
Note that the position of a cursor returned from a query is -1.
The first valid position is 0.

If Position = 0 for first Cursor (Position Gets or sets the current position (row)).

I must be having a Senior Moment! :sign0085:

EDIT:

Found it. The Cursor.Position contains -1 after the Query is finished and we have to set the Cursor.Position to = 0 for first record in the Cursor.
 
Last edited:
Top