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.

Re: How to clear picture in a DBImage ?

Hello,


Form1.DBImage1.Clear;
Dmitry.

Re: How to clear picture in a DBImage ?

i keep getting "undeclared identifier. "Clear"" . i am using the script in the "loadimagefrom data base"and trying to copy it over and make it useable for me.

Re: How to clear picture in a DBImage ?

lhimes
Please, download latest version of My Visual Database
http://myvisualdatabase.com/download/myvisualdb.exe


Let me know result.

Dmitry.

Re: How to clear picture in a DBImage ?

same result