>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--