Hi there,
I have this big table with images in a field called "Photo" which is a BLOB field.
I want to delete all these pictures from the table and for this I have created a temporary (processing only) report. I am writing the following code in the OnAfterGetRecord trigger of the Table Dataitem:
IF Photo.HASVALUE THEN
BEGIN
CALCFIELDS(Photo);
CLEAR(Photo);
MODIFY;
END;
Somehow this does not seem to work. Anyone with a better suggestion to empty a BLOB field "in one go".
Thanks, NVG
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks very much. Putting CALCFIELDS before checking HASVALUE did the trick. Silly ommision on my part.
Thanks to kriki too for achieving that in another way.
Regards,
NVG