www.icetips.com  Icetips Utilities Documentation 10/29/2008    

String Class:  SplitString

Previous  Top  Next  


Prototype: (String pS, String pDelimiter),Long,PROC

 

pSString to split
pDelimiterDelimiter to use to split the string

 

ReturnsNumber of lines created from the split string

 

This method is primarily used to split a string containing linebreaks into a queue of lines.  But it can also be used to separate text based on other delimiters.

 

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.SplitString(S,'<13,10>)

Loop I = 1 To Records(ITS.Lines)

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

End

 

This would show 3 records in the ITS.Lines queue.

 

 

See also:

Lines

StringToLines

StringToWords



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