DdeCallback_ConnectΒΆ

DdeCallback_Connect is called when a client wants to open a channel to UniScript.

bool = DdeCallback_Connect(ssService, ssTopic)

Return Value

bool is TRUE (1) when the channel was successfully opened and FALSE (0) if the function was unsuccessful.

Parameters

ssService

ssService is a service name. For UniPlot, it is the name "UniPlotSL".

ssTopic

ssTopic is the topic name.

Comment

The standard DDE callback function which is located in the UniPlot/script/obj_dde.ic file is only a function body. To use UniPlot as a DDE server, you have to add code to this function.

Example

The following WORD-Basic program causes the UniScript function DdeCallback_Connect, DdeCallback_ConnectConfirm and the function DdeCallback_Disconnect to be called.

Sub Main
    chan = DDEInitiate("UniPlotSL", "xyz")
    DDETerminate(chan)
End Sub

The standard DDE callback functions in UniScript are only function bodies. They produce the following output into the UniScript command window:

---Connect---
Service: UniPlotSL, Topic: xyz

---ConnectConfirm---
Conversation-No.: a000500, Service: UniPlotSL, Topic: xyz

---Disconnect---
Conversation-No.: a000500

id-1560814