Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StrTran() - any known limitations?
Message
 
To
31/10/2007 08:56:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01265319
Message ID:
01265327
Views:
8
Because STRTRAN() is CaseSensitive?

?strtran("AaAaAa","a"," ")

MartinaJ

>I have this piece of code
>
>
Function StrWhile(tcStr, tcRepl, tcReplWith)
>Do While Atc(tcRepl, tcStr)>0 And tcRepl#tcReplWith
>	tcStr2=Strtran(tcStr, tcRepl, tcReplWith)
>	If tcStr2==tcStr
>		Exit
>	Else
>		tcStr=tcStr2
>	Endif
>Enddo
>Return tcStr
>
>The reason I have this if/else block is that it sometimes doesn't replace the string. I've set the watch on the atc() expression, and it remains unchanged, somewhere about 200K or more.
>
>Is there a known bug or limitation that would make StrTran() not work sometimes - when a string is too long or under any other weird circumstances?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform