Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to form and populate CURSOR
Message
 
 
À
24/09/2005 15:35:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01052779
Message ID:
01052798
Vues:
7
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform