Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About add/remove field in runtime and subtran.
Message
From
30/11/1999 13:28:34
 
 
To
30/11/1999 13:12:11
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00296923
Message ID:
00297009
Views:
39
>>To remove all CHR(13) occurances from a memory field:
>>
>>StrC = CHRTRAN(StrC, CHR(13), "") && faster, but limited see docs
>>
>>or
>>
>>StrC = STRTRAN(StrC, CHR(13), "") && not subtran!!!!
>>
>>To reduce all occurances of multiple CHR(13) to a single CHR(13)
>>
>>StrC = STRTRAN(StrC, CHR(13) + CHR(13), CHR(13)) && cannot use CHRTRAN here
>
> hmm .. I really doubt that why it happen ,but when I try to use CHRTRAN or STRTRAN ,nothing change in the text.
> I wanna ask if CHR(13) equal to Press the key ?
> Coz I wanna remove double with singal .

I don't know what's being stored, but it's likely that CHR(10) rather than CHR(13) is involved. You'd have to look at what was stored in the memo to figure out what's happened. My guess is that you need to replace multiple occurances of CR/LF ( CHR(13) + CHR(10) ) with a single occurance of it. Not know what got stored makes it hard to say - you'll have to look at what was piut in the field.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform