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>ddegetdata()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DDEGetData()
Get a DDE data item
------------------------------------------------------------------------------

Syntax
DDEGetData()   -->   cData

Arguments
NONE.

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

Description
This function can be used to fetch the actual data sent by a
server (with a WM_DDE_DATA message).  The data is only
available until ChkEvent() is called for the next message, so
be sure to fetch it immediately.

The Bin2A() function can be used to unpack the data, if
necessary.

The DDEGetData() function is provided in the \clip4win\source\dde.prg file.

Example
cData = DDEGetData()
if cData != nil .and. ( aData := bin2a( cData, "int, BYTE, int" ) ) != nil
     // aData[1] is the 1st int, aData[2] is the BYTE,
     // and aData[3] the last int
     .
     .
     .
endif


See Also: Bin2A() DDEAdvise() DDERequest() DDEStop()

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