RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.StringRefCount Function

Returns the reference count of a string.

Pascal
function StringRefCount(const S: UnicodeString): Longint; overload;
function StringRefCount(const S: RawByteString): Longint; overload;
C++
Longint StringRefCount(const UnicodeString S);
Longint StringRefCount(const RawByteString S);

Call StringRefCount to obtain the reference count of a string. Each string has an associated reference count. This value is used to detect how many references a string has.  

To ensure that a string has a reference count of one, call UniqueString

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!