>Hi,
>Sorry, I sent the wrong code.
>
>I just call GETWORDNUM(myvar, 3).
>In fact, I want to parse the string "word by word", with spaces preserved.
Then use "," as the third parameter - GETWORDNUM(myvar, 3, ","). It will use the comma as delimiter, and will treat spaces as characters. When third parameter is omitted, a space is assumed.