Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getclipbdata()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetClipbData()
Get data from the clipboard
------------------------------------------------------------------------------

Syntax
GetClipbData( <nFormat> )   -->   cData

Arguments
<nFormat> is an integer specifying the format of the data.  It
may be one of the CF_* values below, or a format registered
using RegClipbFormat().

Returns
If successful, the data is returned as a character string.
Otherwise, NIL is returned.

Description
This function returns data from the clipboard, which must have
been opened using the OpenClipboard() function.  Data is
often available in several formats, and it is up to the
application to decide which format it wants.  The available
formats can be determined using the EnumClipbFormats()
function.

The pre-defined clipboard formats are:

     <nFormat>      means

     CF_BITMAP      the data is a bitmap

     CF_DIF         the data is in Data Interchange Format

     CF_OEMTEXT     the data is a string, using the IBM PC character set
                    (lines end with CR, LF; any null terminates the data)

     CF_PALETTE     a colour palette

     CF_RIFF        the data is in Resource Interchange File Format

     CF_SYLK        Microsoft Symbolic Link format

     CF_TEXT        a string, using the Windows character set
                    (lines end with CR, LF; any null terminates the data)

     CF_TIFF        Tag Image File Format data

     CF_WAVE        sound wave data

Example
if  ( cData := GetClipbData( CF_OEMTEXT ) )  !=  nil
     // ok
endif


See Also: OpenClipboard() RegClipbFormat() SetClipbData()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson