Re: Substring with unknown length (newbie)
- From: erewhon@xxxxxxxxxx (J French)
- Date: Fri, 25 Nov 2005 14:12:42 +0000 (UTC)
On 25 Nov 2005 05:46:54 -0800, "Lene" <lenehell@xxxxxxxxxxx> wrote:
>that means I'll have difficulties using the 'copy' function since
>it requires length parameter.
<quote>
If Count specifies more characters or elements than are available,
only the characters or elements from S[Index] to the end of S are
returned.
<quote>
So if the Count is MaxInt you get what you want
- personally I would wrap it in a function called something like
CopyResidue( Start, S )
Even better :
StrExtResidue( TheStr, TheDelin, CountOfTheDelin )
eg: S := StrExtResidue( SrcStr, ',' , 2 )
OverLoad it for: S := StrExtResidue( SrcStr, ',' )
Very useful library routines.
.
- References:
- Substring with unknown length (newbie)
- From: Lene
- Substring with unknown length (newbie)
- Prev by Date: Substring with unknown length (newbie)
- Next by Date: Re: creating properties with sub-properties (like TFont)
- Previous by thread: Substring with unknown length (newbie)
- Next by thread: Re: Substring with unknown length (newbie)
- Index(es):
Relevant Pages
|