Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap user's selection from use ?
Message
 
 
À
29/09/2002 17:01:55
Gerald Blake
Blake Bookkeeping, Inc.
Honolulu, Hawaii, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00705374
Message ID:
00705705
Vues:
13
Hi Gerald,

CHR(13) is Carriage Return, CHR(10) is Line Feed. Combination of CHR(13) + CHR(10) creates a new line code. You can find the list of ASCII codes at http://www.asciitable.com/

The third parameter of STRTOFILE() function determines if file is overwritten or characters added to the end of the file.
* Append to the end of the file
STRTOFILE(REPLICATE(lcCrLf,3), "thewords.txt", .T.)
>Thanks Sergey,
>That works but I don't want the blank lines included before the very first memo field record is copied to the text file. Apparently strtofile() adds them to the beginning of the text file. What are the chr(13) and chr(10) characters? and how can I find an ascii table with all it's characters and an explaination of what they do? For instance I presume that the chr(13) or chr(10) must send a carriage return to create a new line. How can I learn of these characters and their purposes?
>
>
>
>>PMFJI. You can use STRTOFILE() function.
lcCrLf = CHR(13) + CHR(10)
>>* Add 3 blank lines
>>STRTOFILE(REPLICATE(lcCrLf,3), "thewords.txt", .T.)
>>
>>>Thanks Tracy, it worked. Here is another one for you:
>>>I am using copy memo words to thewords.txt additive copy the contents of a memo field into a text file and want to add several lines after the contents are copied into the text file before I move to the next record (song) in my table and do another copy memo command. How do I insert blank lines after a copy memo command?
>>>
>>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform