Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File access problem still unsolved
Message
 
 
À
01/11/1999 12:12:38
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00284854
Message ID:
00284937
Vues:
19
If you are creating a file to transfer data to another app, why don't you use the TextMerge capabilites instead of messing with print commands?


>I am wititing a file to transfer data from FoxPro to another application and am using the following code:
>
>SET SAFETY OFF
>
> SET PRINTER TO NewYellow.iif
> SET PRINTER ON
> SET CONSOLE OFF
> ???''
> SET PRINTER OFF
> SET PRINTER TO
> SET CONSOLE ON
>
>* OPEN THE FILE FOR USE
>
> SET PRINTER TO NewYellow.iif ADDITIVE
> SET PRINTER ON
> SET CONSOLE OFF
>
>*MANY LINES OF OUTPUT TO THE FILE FOLLOW
>
>As you can see, I access the file Newyellow.iif twice. The first time to empty it and the second time to add output. When this code is run in the FoxPro interactive mode it works fine, but when it is compiled into an application or if i specify a path for the file I get a printer not ready message, Anyone have any thoughts as to how I can correct this problem
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform