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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only