www.icetips.com  Icetips Utilities Documentation 9/12/2015    

String Class:  StringToLines

Previous  Top  Next  


Prototype: (String pS, <String pDel>),LONG,PROC

 

pSString to parse into lines
pDelOptional delimiter to use as End-Of-Line string.   Added 2015-09-12

 

ReturnsNumber of records in the Lines property

 

This method calls the SplitString method in order to split the string using CRLF (<13,10>) as delimiter. 

 

Example:

ITS  ITStringClass

S    String(1024)

I    Long

Code

S = 'Icetips Creative, Inc.<13,10>136 E. 8th Street<13,10>Port Angeles, WA 98362'

ITS.StringToLines(S)

Loop I = 1 To Records(ITS.Lines)

  Message('Line ' & I & ': ' & ITS.GetLine(I))

End

 

 

See also:

Lines

FileToLines

SplitString

StringToWords



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