General information
Category:
Coding, syntax & commands
>I've found the problem:
>
>It was wrong:
>
>NewA = STRTRAN(lcFirstWord,rgA, "") && here I try to remove the first word
>
>The correct form is:
>
>NewA = STRTRAN(rgA,lcFirstWord, "") && here I try to remove the first word
I have no idea if it is relevant in your situation.............
this will get rid of ALL occurrences of the word, and all occurrences when it is contained in other words. If the first word is "this" and your string is "this is what thisform and allthisstuff contains" the result would be " is what form and allstuff contains"
If you want to prevent this behavior you should check out the StartOccurrence and NumberOfOccurrences options for STRTRAN
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only