SaveObject Event for OLE Controls
\The Sandbox \PB History & Future \New In PB8 \SaveObject OLE Event
Workspaces
Code Examples
UI changes
Working with 
PB8
Starting PB
System Tree
Library painter
Clip & Output
Source editor
AutoScript
Source Control
Exception
Handling
Web Targets
4GL Web
Pages
Web DW
Scripting
Web DW
Container
Web DW
Events
Server-side
Methods
JavaScript
Includes
HTML
Rendering
EAServer
Profiles
EAS/Existing
Interfaces
EJB Clients
EAS
Transactions
SSL
Connections
Concurrency
Property
Multiple
PB VMs
DB Interfaces
ANSI
Outer Join
Proxy
Connections
Loading
DB Libs
PB.INI/DB Info
Command Line
Deployment
Version
for EXEs
Color Support
New Object
Properties
DW
Expressions
DW
Properties
PowerScript
Functions
SaveObject
OLE Event
DBCS Support
GUIDs & MIMEs

Description

Because of the architecture of OLE, you often cannot interact with an OLE object embedded in an OLE control within the Save and Close events. Trying to do so can generate a runtime error. The SaveObject event provides a way to interact with the embedded server when it saves its data without encountering reentrancy problems.

Usage

The data in an embedded object is stored as a blob in the control's ObjectData property. If you want to save an embedded object in a database or file when the server application saves the object, you can save it as a blob in the script for the control's SaveObject event.The SaveObject event is typically triggered when the embedded server saves the data in the OLE object, either automatically or at the user's request.

The OLE object must be embedded in the OLE control. The SaveObject event is not intended for use with linked objects.

For more information

Select the What's New button on the Help window and select New event.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com