Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran
Message
From
15/10/2008 05:26:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01355061
Message ID:
01355068
Views:
24
>>Hi all,
>>Could you help me what I've done wrong.
>>I have a memo field and would like to get rid of the characters of CHR(13) and CHR(10) from the field.
>>I use the function STRTRAN() like this STRTRAN(CHR(13)+CHR(10), mymemofield) but it doesn't seem to work.
>>Any help would be appreciated.
>>
>>Tamas
>
>You reversed parameters it should be:
>
>? STRTRAN(MyMemo,CHR(13)+CHR(10),[])
>
Yes, you're right, I mixed it up in the text here but I used it correctly within VFP.
I used like this:
lfcr = CHR(13)+CHR(10)
? occurs(lfcr,tetel2.utvonal)
STRTRAN(tetel2.utvonal,lfcr,[])
? occurs(lfcr,tetel2.utvonal)
Both result 4. So it runs without doing the job.
Tamas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform