clear IMAGE
Posted: Thu Jul 18, 2013 8:28 am
Hello,
I want to set a button (ID 102) to clear the Image:
But despite I set oData:Foto to "" and I call refresh and update, the previous picture is still there, I need to remove it.
Maybe I miss something or it is a bug.
Thank you.
I want to set a button (ID 102) to clear the Image:
- Code: Select all Expand view
- REDEFINE IMAGE oBmpFoto1 ID 103 OF oFld:aDialogs[ 3 ] UPDATE ;
FILENAME oData:FOTO ;
ON CLICK ( oData:FOTO := _CargaFoto (oBmpFoto1, oDlg) ) ADJUST
REDEFINE BUTTON ID 101 OF oFld:aDialogs[ 3 ] ;
ACTION ( oData:FOTO := _CargaFoto (oBmpFoto1, oDlg) )
REDEFINE BUTTON ID 102 OF oFld:aDialogs[ 3 ] ;
ACTION ( oData:FOTO := "", alert(odata:foto), oBmpFoto1:Refresh(), oFld:Update(), oFld:Refresh(), oDlg:Refresh() )
But despite I set oData:Foto to "" and I call refresh and update, the previous picture is still there, I need to remove it.
Maybe I miss something or it is a bug.
Thank you.