Advanced PowerBuilder

HomePrevious Lesson: Cold Link
Next Lesson: Using DDE With PowerBuilder

DDE Events In PowerBuilder

The table given below lists all DDE related PowerBuilder events. These events are by default, declared at the window level. This makes sense because, we can think of window as a DDE Topic and the data or controls on the window as DDE Items.

The table shows all the events together with their corresponding Client actions and commands used to get the required results:

Client Action

Event

Commands Used

Client initiates a Hot Link

RemoteHotLinkStart

StartHotLink()

Client sends a command to the server

RemoteExec

GetCommandDDEOrigin() GetCommandDDE()

Client sends data to the server

RemoteSend

GetDataDDEOrigin() GetDataDDE()

Client requests data from the server

RemoteRequest

GetDataDDEOrigin() SetDataDDE() RespondRemote()

Client terminates a Hot Link

RemoteHotLinkStop

StopServerDDE()

You can observe from the above table, there are hot link related events, but there are no events for cold link because in cold link the client requests for the latest data, that means the request can be made from any event. When data is received as the result of cold link that need to be handled in RemoteSend event.
HomePrevious Lesson: Cold Link
Next Lesson: Using DDE With PowerBuilder