共用方式為


Data Navigation Object Foundation Class

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

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.

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

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes