Vcl.DdeMan.TDdeClientConv.RequestData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RequestData(const Item: string): PAnsiChar;

C++

char * __fastcall RequestData(const System::UnicodeString Item);

Properties

Type Visibility Source Unit Parent
function public
Vcl.DdeMan.pas
Vcl.DdeMan.hpp
Vcl.DdeMan TDdeClientConv

Description

Requests data from a DDE server.

Call RequestData to send a request to the DDE server for the data named by Item. RequestData returns the value of the named DDE server item.

Note: RequestData automatically allocates memory to store the returned data, but applications must dispose of this string after processing it. This is done with the StrDispose procedure.

If the DDE server contains DDE items that can be continually updated, data can be received and updated automatically by creating TDdeClientItem objects for those items.

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.

Note: See the documentation for the DDE server application for specific information about specifying a DDE item.

See Also