Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting carriage returns in a memo field
Message
From
25/06/2012 16:26:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/06/2012 14:48:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01546530
Message ID:
01546876
Views:
53
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform