Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a file
Message
 
À
09/07/2003 13:59:12
Brian Weber
Ohio Department of Development
Columbus, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00808601
Message ID:
00808615
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform