Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax, I think?
Message
 
 
À
29/11/2002 15:07:00
Smyte Smithlin
Spectrum Software, Inc.
Omro, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00728074
Message ID:
00728242
Vues:
27
Don't use macro substitution if you don't have to and you will save yourself a lot of aggravation.
You can replace FWRITE() function with FPUTS().
=FPUTS(RPFFILEHANDLE, filetext1)
Take also look at VFP text merge command/function: \ | \\ commans, TEXT ... ENDTEXT command, TEXTMERGE( ) function.

>It's wierd. Using debug, it errored on the line I was reporting. After changing the syntax like you suggested it still errored. When I stepped through it this time however, the error was on the fwrite. I know it's pretty important which line causes the error .... duh....so I'm a little surprised the line causing the problem (at least in the end) was not the line I originally reported.
>
>The next command was after the command being reported causing the error and this was the syntax.
>
>=FWRITE(RPFFILEHANDLE, '&filetext1'+CHR(13)+CHR(10)) && doesn't work
>
>I changed the command to the following and all is well. I'm not sure why and am a little unsettled at this point. I'm guessing it must be the way the macro was being evaluated above.
>
>=FWRITE(RPFFILEHANDLE, filetext1+CHR(13)+CHR(10)) && seems to work
>
>I'm using the syntax you pointed out. You are right, it's much cleaner. Thank you for your help Sergy.
>
>Smyte
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform