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
OLESave (Function)
In French: OLESauve
Saves the object found in an OLE control in binary format. The OLE server is invoked to save the object (the server does not appear). The OLE control is not updated.
Then, the object that was saved can be re-loaded by OLELoad.
Example
OLECreateEmpty(OLE_OLE1, "PBrush")
// Process
// Save the object
OLESave(OLE_OLE1, "OBJECT1.OLE")
OLEPaste(OLE_OLE1, "PBrush")
// Save the object
OLESave(OLE_OLE1, "OBJECT1.OLE")
Syntax
<Result> = OLESave(<Control Name> , <File Name>)
<Result>: Boolean
  • True if the object was saved,
  • False otherwise.
<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.
<File Name>: Character string (with quotes)
Name and path (if necessary) of the destination file. The extension must be specified. If the path is not specified, the file is saved in the current directory.
Remarks
Only OLE version 1 is supported.
Components
WINDEVReports and Queries wd230ole.dll
See also
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment