Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting carriage returns in a memo field
Message
De
25/06/2012 16:26:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/06/2012 14:48:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01546530
Message ID:
01546876
Vues:
54
>AFAIK, Windows system always use CR+LF combination.

There's no standard to speak of. It's a recommended setting, not an universal rule, and that would apply to text files and their editors, not Fox memo fields.

>For simple I will use this method for any possible combinations
>
>
>lcText = STRTRAN(STRTRAN(m.lcText, CHR(13)+CHR(10), [<br />]), CHR(10), [<br />])
>
Which is not ALL the combinations - there's a setting in Fox's editbox to add a LF or not. Then the memo may be edited on two machines differing in this setting, and you may have any combination if the last user added more blank lines. Don't be surprised (like I was a few times) if you end up with a triple break somewhere.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform