RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDdeServerItem.Text Property

Contains the data to exchange in a DDE conversation.

Pascal
property Text: string;
C++
__property AnsiString Text;

Set Text to the data the DDE server item sends to the DDE client. Whenever the Text property changes, an OnChange event occurs and then the new value is sent to the DDE client. If the DDE server item accepts poked data, Text receives the data whenever the DDE client pokes data to this item. When Text is changed by a DDE client poking data, an OnPokeData event occurs after the OnChange event. 

Usually Text contains text, and setting Text sets the Fmt property to CF_TEXT. However, Text can contain non-text data. If Text does not specify text data, Fmt must be changed to indicate the format of the data in an OnChange event handler. 

Text corresponds to the Lines property. Whenever the value of Lines or Text is changed, the other is updated so that the first line of Lines is always equal to Text. 

 

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