Re: Substring with unknown length (newbie)
- From: Andreas Koch <nospam@xxxxxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 18:42:55 +0100
Lene wrote:
Search string[ i++] until string [ i] = '>'; string [ i+1] := #0;
Just translate your thoughts directly to delphi...
var i:integer; s:string;
begin s:='test > text'; i:=1; while (s[i]<>'>') do i:=i+1; // !no checks! setlength(s,i); end;
.
- References:
- Substring with unknown length (newbie)
- From: Lene
- Substring with unknown length (newbie)
- Prev by Date: Changing Application.Title
- Next by Date: Re: Changing Application.Title
- Previous by thread: Re: Substring with unknown length (newbie)
- Next by thread: Re: Substring with unknown length (newbie)
- Index(es):