There's a TImage component on a form in my program.
In some situation, the program must test:
If "there is an image assigned to the picture property of the TImage component" then .............
How can I do this?
Thanks in advance.
There's a TImage component on a form in my program.
In some situation, the program must test:
If "there is an image assigned to the picture property of the TImage component" then .............
How can I do this?
Thanks in advance.
You don't say, but I'll assume you're talking about Delphi.
You can check whether there's a bitmap in the TImage control by testing:
if Image.Picture.Bitmap.Width > 0 then
// do whatever