oleObject

Type: OleObject

Availability: Read or write at any time

The oleObject property of the OleControl class contains a reference to an OLE object.

Use the copy method of the OleObject class to copy another object into or out of the control to or from the database. Use the loadFromDB method to access the contents of the OLE object.

The code fragment in the following example shows the use of the oleObject property.

foreach ole in ReviewOLEObj.instances do
    count := 1 + count;
    if count = 1 then
        oleReview1.oleObject.copy(ole);
        oleReview1.loadFromDB;
    elseif count = 2 then
        oleReview2.oleObject.copy(ole);
        oleReview2.loadFromDB;
    elseif count = 3 then
        oleReview3.oleObject.copy(ole);
        oleReview3.loadFromDB;
    endif;
endforeach;

See also the OleObject class getData and setData methods.