www.icetips.com  Icetips Utilities Documentation 7/6/2014    

String Class:  GetWord

Previous  Top  Next  


Prototype: (Long pIndex),String

 

pIndexQueue pointer for the record to get.  This must be in the range of 1 to Records(Words)

 

ReturnsThe 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:

Lines

AddLine



Direct link to this page: http://www.icetips.com/manuals/utilities/getword_stringclass.htm