Share via


Data Navigation Object Foundation Class

This is non-visual navigation object that can be used by other controls to navigate records in a datasource such as a table or view.

Category

Data Navigation

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Data Navigation

Class

_tablenav

Base Class

Custom

Class Library

_table.vcx

Parent Class

_table

Sample

...\Samples\Solution\Ffc\datanav.scx

Remarks

To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you add the class to a project, you can choose between adding the class or creating a subclass. When you add the class to a form, Visual FoxPro displays the class icon on the form so you can add data navigation objects then reference appropriate class methods on the form in the Form Designer.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods

Description

lCycle property

Controls movement when the record pointer reaches the end or beginning of the file.

Default: .F.

GoBottom method

Moves record pointer to last record.

Syntax: GoBottom( )

Return: none

Arguments: none

GoRecord method

Moves record pointer to a specified record number.

Syntax: GoRecord( )

Return: none

Arguments: tiRecord

GoNext method

Moves the record pointer to the next record using SKIP 1. If this movement positions the pointer at EOF( ), behavior is determined by the lCycle property.

Syntax: GoNext( )

Return: none

Arguments: none

GoPrevious method

Moves record pointer to the previous record using SKIP –1 if the pointer is not already at BOF( ). If this movement positions the pointer at BOF( ), behavior is determined by the lCycle property.

Syntax: GoNext( )

Return: none

Arguments: none

GoTop method

Moves record pointer to first record.

Syntax: GoTop( )

Return: none

Arguments: none

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples