共用方式為


Sort Selector Foundation Class

Category Data Query
Default Catalog Visual FoxPro Catalog\Foundation Classes\Data Query
Class _sortselect
Base Class Container
Class Library _table2.vcx
Parent Class _container
Sample ...\Samples\Solution\Ffc\datasort.scx

Remarks

This set of buttons, when placed on a project or form, performs an ascending or descending sort based on the current control.

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 form, Visual FoxPro places the buttons on the form. You can then specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

Properties, Events, Methods Description
DoSort method Makes it possible for you to sort on the current field or
to specify the field on which to order a
table.
Syntax: DoSort([tcField] [,tcAlias]
[,tcTag] [,tlDescending])
Return: none
Arguments:
tcField specifies the field to sort on.
tcAlias specifies the alias of the table to
sort.
tcTag specifies the index tag of the field,
tcField.
tlDescending specifies whether the sort is
a descending sort.

See Also

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