degarb wrote:
To me, a proper design is stringleft, var, var, %position number from left% = trim everything to left of "PNFL%
And, stringright, var, var, %position number from left% = trim everything to Right of "PNFL%
Except it appears on string right it starts counting from right. WTF? (What the Function?)
StringRight counts from the right side of the string to the left, stringleft the reverse.
StringLeft and StringRight both count a number of characters OUT from the character that you specify, in the only direction they can go.
In the above sentence, StringRight, OutputVar, InputVar, 5 would be: "n go."
If you want to pull data from the middle of a string, StringMid lets you specify a place to begin counting and the number to count off.
If you want to cut data from a string, see StringTrim in the help file.