Share via


GoTo Dialog Box Foundation Class

Category Data Navigation
Default Catalog Visual FoxPro Catalog\Foundation Classes\Data Navigatio
n
Class _gotodialog
Class Library _table.vcx
Parent Class _form
Sample ...\Samples\Solution\Ffc\datanav.scx

Remarks

This class creates a GoTo Record dialog box.

To use, drop the class on a project or, from the Component Gallery Item Shortcut Menu, select Create Form. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. When you drop the class on a project or choose Create a new form from the selected class in the shortcut menu, Visual FoxPro opens a builder so you can specify the name of the form, then creates and opens the form in the Form Designer.

_GoToDialog is a modal dialog box with a _TableNav member and a spinner to allow the user to specify a record number. When you click OK, the GoToRecord method navigates to the specified record, then runs the RefreshLastWindowAfterChange method to update the display. Note that GoToRecord( ) updates the display even if the table does not permit navigation, in case you revert a change.

_GoToDialog uses _TableNav to determine the current alias at startup. It then sets the spinner SpinnerLowValue and KeyboardLowValue to 1 and SpinnerHighValue and KeyboardHighValue to RECCOUNT( ). It also sets the spinner Value property appropriately.

Properties, Events, Methods Description
RefreshUIAfterChange method Internal to the class.

See Also

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