Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STRTRAN no matter the case
Message
From
29/09/1997 15:23:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
25/09/1997 19:17:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051670
Message ID:
00052254
Views:
33
>Instead of your SUBSTR() + STRTRAN() use STUFF() (you know where the string >is and how long it is). It's faster. > >Vlad > Besides, no need for double replaces - use RATC to find all the occurences from right to left, and do the search up to the left of the position of the last find, or use RATC(sstr, memo, nOccurence) - the third parameter may be used just fine (but not in this scenario). I've had a situation when I needed some multiple replacement of a string within a long memo, and I ended up marking (saving into an array) the positions of all the occurences, then STUFFing the new string into the marked positions from last to first, so the positions don't move.

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