PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Connecting to a DDE server
DDERetrieve (Example)
Connecting to a DDE server
This code example contains the client code used to start the DDE server, and to send and receive information.
// Example of client

// Connection
ConnectionNum is int
DDEStart(ServerName)
ConnectionNum = DDEConnect(ServerName, "MyTopic")
// Prepare to receive some messages
// Processed in the MODIF procedure
DDEEvent("MODIF", DDEtoModify)
// ...
// Run a server action
DDEExecute(ConnectionNum, "EXE1")
IF DDERetrieve(ConnectionNum, "Item1") THEN
Info("The retrieved data is" + DDEString())
END
// ...
// Send a value
DDESend(ConnectionNum, "Item2", Value)
// ...
// Disconnection
DDEDisconnect(ConnectionNum)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment