Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to a file
Message
 
To
09/07/2003 13:59:12
Brian Weber
Ohio Department of Development
Columbus, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00808601
Message ID:
00808615
Views:
11
>I am trying to print a selection from a list to a file. The program right now is pringing out only the first selection from this list. I know that i need to loop through the code to get it to print all of the selections, but when it hits the loop it says file is in use and only prints the first one. Here is the code for the loop.
>
>
do while x < thisform.pageframe.page3.list3.listcount
>      x=x+1
>	      lastname = left(thisform.pageframe.page3.list3.list(x),3)
>	      append from c:\phonebook\addresses for lastname = thisform.pageframe.page2.txtlastname.value
>	      COPY TO 2
>	      MODIFY FILE 2
>	      use
>	enddo
>any ideas or suggestions as to the cause of this problem?
>
>TIA
>Brian

Try:
m.lastname = left(thisform.pageframe.page3.list3.list(x),3)
append from c:\phonebook\addresses for lastname = m.lastname
Also the COPY TO will overwrite any existing file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform