ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / DDE functions
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
DDESend (Function)
In french: DDEEnvoie
Sends a data to the program connected via DDE.
Example
MyConnection = DDEConnect("Excel", Subject)  // Connection
Counter = 3   // Repeats 3 times if necessary
LOOP    // Sends the data
IF DDESend(MyConnection, Item, Data, 10) = True THEN BREAK
Counter --
IF Counter = 0 THEN
Error("The information was not sent to Excel")
BREAK
END
END
DDEDisconnect(MyConnection) // Disconnection
Syntax
<Result> = DDESend(<Connection identifier> , <Object for Sending> , <Data> [, <Timeout>])
<Result>: Boolean
  • True if the sending was performed,
  • False if an error occurred (DDEError returns the details of the error).
<Connection identifier>: Integer
Connection identifier, returned by DDEConnect.
<Object for Sending>: Character string
Object for sending to the program.
<Data>: Character string
Data that must be sent to the connected program.
<Timeout>: Optional integer or optional Duration
Maximum wait duration (in seconds). If the command was not run:
  • If <Timeout> is specified, there is a delay of <Timeout> seconds before exiting DDESend.
  • If <Timeout> is not specified, there is an endless wait.
Remark: This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • the duration in clear ('1s' for example).
Remarks

Limit

The size of the parameters used by DDESend is limited to 1000 characters.
Component: wd290std.dll
See also
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