Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy records on screen to text file
Message
 
À
31/03/2000 12:56:48
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00353388
Message ID:
00353469
Vues:
23
>>>>each must be printed to a separate line, and the file must be created in a
>>>Also just in case you did not know CHR(13)+CHR(10) added to text sent to the STRTOFILE command will enter a carriage return line feed.
>>>STRTOFILE(txtbox1.Value+ ' ' + txtbox2.Value + CHR(13)+CHR(10),'c:\temp\file.qlp')
>>
>>CRLF = chr(13) + chr(10)
>>outputfilename = "c:\temp\file.qlp"
>>writestring = txtbox1.value + CRLF + txtbox2.value + CRLF
>>StrToFile(writestring,outputfilename,.T.)
>>
>>The third arguement is APPEND- i don't know if it's documented, because i looked for it and didn't find it, then just guessed. (BTW, the command can be done in one statement, but for the sake of explanation, i broke it up)
>
>
>This works fine. One small question. I changed the Append to .F. to create a new file and FP askes whether I want to overwrite the old file. Is there any way to not have this come up?
>
>Thanks again!


SET SAFETY OFF then SET SAFETY OFF right after

or delete file just before.

HTH

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform