loadFromDB(): Integer;
The loadFromDB method of the OleControl class loads the control from its oleObject property. (This is done by default when the form is created.)
The method in the following example shows the use of the loadFromDB method.
load() updating;
vars
bin : Binary;
obj : Object;
count : Integer;
begin
foreach obj in ReviewOLEObj.instances do
count := 1 + count;
if count = 1 then
oleReview1.oleObject.copy(obj.ReviewOLEObj);
oleReview1.loadFromDB;
elseif count = 2 then
oleReview2.oleObject.copy(obj.ReviewOLEObj);
oleReview2.loadFromDB;
elseif count = 3 then
oleReview3.oleObject.copy(obj.ReviewOLEObj);
oleReview3.loadFromDB;
endif;
endforeach;
end;