|
Previous Top Next |
Prototype: | (Long pIndex),String |
pIndex | Queue pointer for the record to get. This must be in the range of 1 to Records(Words) |
Returns | The contents of the Words.Word for the record being pointed to or an empty string if the pIndex value is out of range. |
This method simply returns the contents of a specified word in the Words queue.
Example:
ITS ITStringClass
S String(1024)
Code
S = 'This is a fun exercise'
ITS.StringToWords(S,,,False) ! Do not sort alphabetically
S = ITS.GetWord(1)
!! S would now be 'This'
S = ITS.GetWord(2)
!! S would now be 'is'
S = 'This is a fun exercise'
ITS.StringToWords(S) ! Sort alphabetically
S = ITS.GetWord(1)
!! S would now be 'a'
S = ITS.GetWord(2)
!! S would now be 'fun'
Message(S)
See also: