Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create index order for the cursor ?
Message
From
25/07/2011 05:11:43
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How to create index order for the cursor ?
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:
01519042
Views:
76
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
Next
Reply
Map
View

Click here to load this message in the networking platform