Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop
Message
From
15/02/2005 16:58:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Loop
Miscellaneous
Thread ID:
00987226
Message ID:
00987226
Views:
53
I have a cursor called "temp" with a listing of usernames. I would like it to loop through the second command and create a txt file for every user in my temp cursor. It's only grabbing the first user. Any help appreciated.
SELECT sendername FROM special;
 GROUP BY sendername;
 into cursor temp
 
 count1 = RECCOUNT()

 
FOR n = 1 TO count1
  SELECT customer, name, descriptions FROM special WHERE temp.sendername=sendername
  SKIP 1
  CD c:
  COPY TO (temp.sendername) deli with ""  with tab
  
  endfor
Next
Reply
Map
View

Click here to load this message in the networking platform