RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDdeClientConv.PokeData Method

Sends data to a DDE server application.

Pascal
function PokeData(const Item: string; Data: PChar): Boolean;
C++
__fastcall Boolean PokeData(const AnsiString Item, const char * Data);

Use PokeData to transfer text data to a DDE server that supports poked data. Item specifies the linked item in the DDE server. Data is a null-terminated string that specifies the text data to transfer. 

The value of the DDE item depends on the linked DDE server application. Item is typically a selectable portion of text, such as a spreadsheet cell or a database field in an edit box. If the DDE server is a Delphi C++Builder application, Item is the name of the linked DDE server component. 

The usual direction of data flow is from the DDE server to the DDE client application. Some DDE server applications won't accept poked data. PokeData returns true if the data was successfully transferred, false if the data was not successfully transferred. 

To poke a string list rather than a single string, use the PokeDataLines method.

Note: If either the ExecuteMacro or ExecuteMacroLines method was called with its WaitFlg parameter set to true, PokeData will automatically fail until the server application has completed executing the macro. The WaitStat property indicates when PokeData will attempt to poke data to the server.
 

 

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