Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHRTRAN and remove characters
Message
From
13/10/2004 12:47:26
John White
Micro-Oriented Software Techniques, Inc.
Phoenix, Arizona, United States
 
 
To
12/10/2004 18:34:25
Walter Nicholls
Cornerstone Software Ltd
Auckland, New Zealand
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00950654
Message ID:
00951122
Views:
17
>A likely explanation for this is that CHRTRAN() is modifying the string in-place. If it encounters a 'missing' substitution character then it is probably closing up the gap with a bulk move of the remainder of the string left one byte. Starting with 6-million-odd bytes, in this case. By the time it gets the end of the string it will be running quite fast (only a few bytes left to move).
>
>It could be made faster quite easily, by getting it to shift only one byte over at a time. The question is whether one of the fox developers is willing to potentially break things trying, this late in the development cycle.

Since STRTRAN() works quite well and is a known substitution, I wouldn't expect them to try.

Good meeting you at Devcon!
John White [MOST]
Previous
Reply
Map
View

Click here to load this message in the networking platform