ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / DDE functions
  • Limit
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
DDESend (Function)
In french: DDEEnvoie
Sends a data to the program connected via DDE.
Example
MaConnexion = DDEConnect("Excel", Sujet)  // Connexion
Compteur = 3	  // Répète 3 fois si nécessaire
LOOP	   // Envoie les données
	IF DDESend(MaConnexion, Item, Data, 10) = True THEN BREAK
	Compteur --
	IF Compteur = 0 THEN
		Error("L'information n'a pas pu être envoyée à Excel")
		BREAK
	END
END
DDEDisconnect(MaConnexion)	// Déconnexion
Syntax
<Result> = DDESend(<Connection ID> , <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 ID>: 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.
Note: This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • duration in plain text (e.g. '1s').
Remarks

Limit

The size of the parameters used by DDESend is limited to 1000 characters.
Component: wd300std.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help