Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileToStr and chr(10) help
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507894
Message ID:
00507898
Vues:
25
Hi!

It comes from the deep dark times of MSDOS programs and MSDOS files. When they;re printed to printer, it required 2 codes: CR - Carriage Return (code 13) - to move to the first position in the line, and LF - Line Feed (code 10) - to move to next line (scroll 1 line printer paper). Without LF code printer continue printing in the same line overriding text of previous line.

Some text processors and text editors currently are very picky to this requirement and recognize only combination of CRLF codes. Most systems, however, recognize all combinations: CR, LF, CRLF and LFCR as the end of the line. VFP memo field is not that picky.

HTH.

>strtofile(filetostr(copyup_to + "\File1.txt") + chr(13) + chr(10) + filetostr(File1_copyup_from), copyup_to + "\File1.txt")
>
>I have the previous statement used for two different file concatenations (obviously the second one has different file names).
>
>File1 was created with FCREATE and FPUTS. When I use the above statement to concatenate i end up with a blank line between the two file inputs. What does chr(10) do? I have looked in the HELP and can not find anything in INKEY().
>
>Thanks
>
>Brenda
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform