PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] How can I found out if a image control has a image ?
[WD20] How can I found out if a image control has a image ?
Iniciado por guest, 04,abr. 2016 14:51 - 4 respuestas
Publicado el 04,abril 2016 - 14:51
Hi,

I need the information that a imagecontrol has loaded an image.

Any ideas ?
Publicado el 04,abril 2016 - 15:38
Hi Michael,

the line

MyString is string=MyImageControl puts the full name of the image file into the string. If the string is empty, no image was loaded in the control

Best regards
Publicado el 04,abril 2016 - 15:49
Hi Fabrice,

the image comes from the clipboard.
Publicado el 04,abril 2016 - 16:23
Does this work?
IF IMG_Control = "" THEN // no loaded image ELSE // loaded image END
Publicado el 04,abril 2016 - 16:39
Hi Michael,

if it comes from the clipboard, then you can do :
MyBuffer is buffer=MyImageCOntrol
info(length(MyBuffer))

You should see zero when empty (I suppose) and >0 otherwise

Best regards