RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClipboard.GetTextBuf Method

Retrieves text from the clipboard and copies it to a buffer.

Pascal
function GetTextBuf(Buffer: PChar; BufSize: Integer): Integer;
C++
__fastcall int GetTextBuf(const char * Buffer, int BufSize);

Use GetTextBuf to retrieve text from the clipboard and copy it into the buffer pointed to by Buffer. GetTextBuf copies up to the number of characters given by BufSize and returns the number of characters copied. The resulting text in Buffer is a null-terminated string. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!