ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / OLE functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
OLEActivate (Function)
In french: OLEEdite
Edits an OLE object contained in an OLE control. To perform this operation, OLEActivate invokes the OLE server that created the object. The OLE server is started and the object contained in the OLE control is edited.
Note: A double click in the OLE field has the same action as the function OLEActivate.
Example
// Création d'un objet Paint Brush
OLELoad(OLE_OLE1, "C:\WINDEV\OLE1.OLE")
// ...
// Lancement de Paint Brush pour éditer l'objet
OLEActivate(OLE_OLE1)
// Sauvegarde
OLESave(OLE_OLE1, "OBJET.OLE")
Syntax
<Result> = OLEActivate(<OLE control> [, <Locks>])
<Result>: Boolean
  • True if the object was edited,
  • False otherwise (the OLE control contains no object for example).
<OLE control>: Control name
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control used will be the control to which the current event belongs.
<Locks>: Optional boolean
  • True (default value): Server blocking.
    The window containing the OLE control cannot be in edit as long as the user has not exited from the server.
  • False: Non-blocking server.
    The user can perform inputs in the window containing the OLE control while the server is still started. Used to play a verb with OLEPlay.
Remarks
Only OLE version 1 is supported.
Component: wd300ole.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help