Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find CR in memo
Message
 
To
03/10/2008 03:47:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01352487
Message ID:
01352492
Views:
24
This message has been marked as the solution to the initial question of the thread.
>>>Hi all
>>>Can anybody help me how to find CR/LF in a memo field.
>>>Thanks
>>>
>>>Tamas
>>
>>? ATC(CHR(13)+CHR(10), MemoFieldName)
>
>Thanks, Boris.
>Intrestingly the memo field seems to have ten lines but the ATC returns 30.
>Can I display where exactly the CR is in the text?
>
>Thanks

ATC() returns the first occurrence of the searched string. If you want to see how many occurances of CRLF you have in that memo you could use:
#define CRLF CHR(13)+CHR(10)
? OCCURS(CRLF,  MemoField)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform