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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement