RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideString::Copy Method

Returns a copy of theSystem::WideString::WideString.

Pascal
function Copy(var : wchar_t; len: Integer): wchar_t*;
C++
__fastcall wchar_t* Copy(wchar_t *, int len) const;

Use System::WideString::Copy to copy theSystem::WideString::WideString into an array of wchar_t. Use the Length method to ensure that the destination buffer is large enough to hold the contents of theSystem::WideString::WideString

WideString also supports a static copy method that copies an arbitrary source string. 

 

System::WideString::bstr 

System::WideString::c_bstr 

System::WideString::& 

System::WideString::Length 

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