The split function delphi

  / / In accordance with string, the string split, the split in the equivalent function vb 
  Function SplitString (const Source, ch: string): TStringList; 
  Var 
  Temp: String; 
  I: Integer; 
  Begin 
  Result: = TStringList.Create; 
  / / If the air since 1999, returned to the empty string List 
  If Source ='' 
  Then exit; 
  Temp: = Source; 
  I: = pos (ch, Source); 
  While i do <> 0 
  Begin 
  Result.add (copy (temp, 0, i-1)); 
  Delete (temp, 1, i); 
  I: = pos (ch, temp); 
  End; 
  Result.add (temp); 
  End; 

  Www.sinoprise.com 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags: ,

Releated Articles


0 Comments to “The split function delphi”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.