|
Entry code:
updateblob wd set wd_content =: tot_b where wdbh =: ls_wdbh using SQLCA;
SQLCA.autocommit = false
SELECT wd.title
INTO: l_title
FROM wd
WHERE wd.wdbh =: ls_wdbh;
if l_title <> '' then
commit using sqlca;
messagebox ('', 'Success in storage!')
else
rollback using sqlca;
messagebox ('', 'Storage failed, please re-enter!')
end if
Extract code: (in the doublelicked event of ole_1) (ole is the microsoft word in create new in the ole control)
blob pic
int n
selectblob wd_content into: pic from wd where wdbh = 555555;
if isnull (pic) <> true then // if there is a record
ole_1.objectdata = pic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . line 6
ole_1.activate (inplace!)
end if
Error after running and double-clicking ole_1:
Bad runtime function reference at line 6 in doubleclicked event of object ole_1 of w_2
Please heroes help |
|