Re: copy one character from a string.
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 24 Nov 2005 05:16:08 -0800
I'm only following advice in Delphi Help <g> ...
"procedure UniqueString(var S: string);
Description
Following a call to SetString, S is guaranteed to reference a unique
string; that is, a string with a reference count of one. For normal
string handling, there is no need to ever call UniqueString. Only in
cases where an application casts a string to a PChar and then modifies
the contents of the string must UniqueString be used."
....or is there something else subtle which UniqueString or SetLength
does ?
Alan Lloyd
.
- Follow-Ups:
- Re: copy one character from a string.
- From: Maarten Wiltink
- Re: copy one character from a string.
- References:
- copy one character from a string.
- From: MLian
- Re: copy one character from a string.
- From: Dodgy
- Re: copy one character from a string.
- From: MLian
- Re: copy one character from a string.
- From: Bjørge
- Re: copy one character from a string.
- From: alanglloyd@xxxxxxx
- Re: copy one character from a string.
- From: Maarten Wiltink
- copy one character from a string.
- Prev by Date: Re: copy one character from a string.
- Next by Date: Re: copy one character from a string.
- Previous by thread: Re: copy one character from a string.
- Next by thread: Re: copy one character from a string.
- Index(es):
Relevant Pages
|