GO | GOTO Command
Moves the record pointer to the specified record number. There are multiple versions of the syntax.
GO [RECORD] nRecordNumber [IN nWorkArea | IN cTableAlias] |
GO TOP | BOTTOM [IN nWorkArea | IN cTableAlias] |
GOTO [RECORD] nRecordNumber [IN nWorkArea | IN cTableAlias] |
GOTO TOP | BOTTOM [IN nWorkArea | IN cTableAlias] |
Parameters
- RECORD nRecordNumber
-
Specifies the physical record number to which you move the record pointer. You can omit GO or GOTO entirely and specify just the record number. If you specify just the record number, you can move the record pointer only within the current work area.
- IN nWorkArea
-
Specifies the work area of the table in which you move the record pointer.
- IN cTableAlias
-
Specifies the alias of the table in which you move the record pointer.
- TOP
-
Positions the record pointer on the first record in the table. If the table has an ascending index in use, the first record is the record with the lowest key value. If the index is in descending order, the first record is the record with the highest key value.
- BOTTOM
-
Positions the record pointer on the last record in the table. If the table has an ascending index in use, the last record is the record with the highest key value. If the index is in descending order, the last record is the record with the lowest key value.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Note
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08