Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create index order for the cursor ?
Message
 
To
25/07/2011 05:11:43
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01519042
Message ID:
01519043
Views:
37
>Hi,
>
>I have following SELECT statement to select the customer records into a cursor CUSMAS_SRH and order by the customer code,
>the cursor is binding to a grid in a form, I want user to click the customer name column header to change the order by customer name,
>and click the customer code column header to order by customer code.
>
>How to create the index order for the CUSMAS_SRH ?
>
>
>SELECT cusmas->cusno,cusmas->cusname FROM cusmas INTO CURSOR cusmas_srh ORDER BY cusmas->cusno
>
>
>
>Please advise.
>
>Thanks.
>Derek
... INTO CURSOR cusmas_srh ORDER BY cusmas->cusno READWRITE
INDEX ON ... TAG ...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform