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

String Class:  GetLine

Previous  Top  Next  


Prototype: (Long pIndex),String

 

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

 

ReturnsThe contents of the Lines.OL 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 line in the Lines queue. 

 

Example:

 

ITS  ITStringClass

S    String(1024)

Code

ITS.AddLine('First line',True)

ITS.AddLine('Second line')

ITS.AddLine('Third line')

S = ITS.GetLine(1)   ! S = 'First line'

S = ITS.GetLine(2)   ! S = 'Second line'

S = ITS.GetLine(3)   ! S = 'Third line'

 

 

See also:

Lines

AddLine



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