ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / DDE functions
  • Retrieving data
DDEString (Example)
Retrieving 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 is retrieved using 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

Last update: 05/26/2022

Send a report | Local help