PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 performed in the OLE control and OLEActivate have the same effect.
Example
// Create a Paint Brush object
OLELoad(OLE_OLE1, "C:\WINDEV\OLE1.OLE")
// ...
// Start Paint Brush to edit the object
OLEActivate(OLE_OLE1)
// Save
OLESave(OLE_OLE1, "OBJECT.OLE")
Syntax
<Result> = OLEActivate(<Control Name> [, <Locks>])
<Result>: Boolean
  • True if the object was edited,
  • False otherwise (the OLE control contains no object for example).
<Control Name>: Character string (with or without quotes)
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Locks>: Optional boolean
  • True (default value): Locking server.
    The window containing the OLE control cannot be in edit as long as the user has not exited from the server.
  • False: Non-locking 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.
Components
WINDEVReports and Queries wd230ole.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment