Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find CR in memo
Message
 
À
03/10/2008 03:47:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01352487
Message ID:
01352492
Vues:
23
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform