PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Retrieving a data
DDEString (Example)
Retrieving a data
This example is a code found on the DDE client computer. This code is used to start the DDE server in order to make it run an action. The result of the action performed is retrieved by DDEString.
// Example of client
ConnectionNum is int
DDEStart(ServerName)   // Starts the server
ConnectionNum = DDEConnect(ServerName, "MySubject") // Connection
// Prepares to receive messages in the MODIF procedure
DDEEvent("MODIF", DDEtoModify)

// ...

// Runs a server action
DDEExecute(ConnectionNum, "EXE1")
IF DDERetrieve(ConnectionNum, "Item1") THEN
Info("The retrieved data is" + DDEString())
END

// ...

// Sends 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