Share via


GETWORDNUM( ) Function

Returns a specified word from a string.

GETWORDNUM(cString, nIndex[, cDelimiter])

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).
  • cDelimiter
    Optional. Specifies one or more optional characters used to separate words in cString. The default delimiters are space, tab, and carriage return.

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.

See Also

GETWORDCOUNT( ) Function