Returns a specified word from a string.
GETWORDNUM(cString, nIndex[, cDelimiters]) |
Parameters
- cString
- Specifies the string to be evaluated
- nIndex
- Specifies the index position of the word to be returned. For example, if nIndex is 3, GetWordNum(В ) returns the third word (if cString contains three or more words).
- cDelimiters
- Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, carriage return, and line feed. Note that GetWordNum(В ) uses each of the characters in cDelimiters as individual delimiters, not the entire string as a single delimiter.
Return Value
Character
Remarks
Returns the word at the position specified by nIndex in the target string, cString. If cString contains fewer than nIndex words, GetWordNum(В ) returns an empty string.