Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to form and populate CURSOR
Message
 
 
To
24/09/2005 15:35:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052779
Message ID:
01052798
Views:
6
>Hi all,
>User can select from listbox any combination among 30 items, which are connected with field names. If selected field names are placed in array how should I form a cursor and populate it with SELECT for choosen combination of table fields ? Now this seems to me more difficult then I supposed to be !?
lcFieldList = ""
FOR i=1 TO ALEN(laFieldList,1)
  lcFieldList = lcFieldList + ", " + laFieldList[i,1]
ENDFOR

lcFieldList = SUBSTR(lcFieldList,3)

SELECT &lcFieldList FROM ...
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform