ComponentOne True DBInput Pro 8.0
OLESetData Event (TDBDate)

 

Reference> TDBDate Control> TDBDate Control Events> OLESetData Event (TDBDate)

OLESetData Event (TDBDate)

Occurs on an source component when a target component performs the on the source's DataObject object, but the data for the specified format has not yet been loaded. In certain cases, you may wish to defer loading data into the DataObject object of a source component to save time, especially if the source component supports many formats. This event allows the source to respond to only one request for a given format of data. When this event is called, the source should check the format parameter to determine what needs to be loaded and then perform the SetData method on the DataObject object to load the data which is then passed back to the target component.

Syntax

control_OLESetData (Data As DataObject, DataFormat As Integer)

Arguments

data is a DataObject object in which to place the requested data. The component calls the SetData method to load the requested format.

dataformat is an integer specifying the format of the data that the target component is requesting. The source component uses this value to determine what to load into the DataObject object.

See Also

OLEStartDrag Event (TDBDate)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback