Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement