RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::data Method

Returns a pointer to the underlying string System::UnicodeString::data.

Pascal
function data: const void*;
C++
__fastcall const void* data() const;

System::UnicodeString::data returns a wchar_t pointer to the System::UnicodeString object that it uses to store its value. This is the same value as the one returned by the System::UnicodeString::c_str method, except that System::UnicodeString::c_str returns a pointer to an empty string when the string is unassigned. 

 

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