Topic: How to clear picture in a DBImage ?
Hello Dimitri
A question about DBImage component.
How would you do to clear picture showed in a DBImage ?
I've tried many codes :
myForm.DBImage1.Picture.Bitmap.Assign(nil); or
myForm.DBImage1.Picture.Graphic:= Nil; or
myForm. DBImage1.Picture.Graphic.Empty;
Each time, I get error message saying : 'Could not convert variant of type|Null] into type [Integer]
Obviously, a transtypage problem.
If I try this :
myForm.DBImage.Picture := nil;
Well, Okay, picture has flew away but the component DBImage also with it.
Thanks for your answer !
Jean B.