Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strtofile() function
Message
De
03/04/2001 08:40:22
 
 
À
03/04/2001 07:28:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491247
Message ID:
00491262
Vues:
8
>>>Need help.
>>>
>>>How do you let strtofile() behave like fputs? I just can't gets strtofile to do a carriage return even when I append the character expression with chr(13).
>>>
>>>Thanks
>>
>>Mohammed,
>>StrTofile(lcString) just writes your lcString as is whatever the chars it has printable or nonprintable.
>>lcString = 'Hello'+chr(13)
>>StrTofile(lcString, lcFile)
>>outputs Hello< CR >
>>You can see that :
>>do home()+'tools\hexedit\hexedit' with (lcFile)
>>Cetin
>
>BTW fputs() uses chr(13)+chr(10) not just chr(13).
>Cetin


Thanks. The chr(10) did the trick.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform