nageswaragunupudi wrote:Mr JC
There is nothing wrong with your code. ( By the way it is not necessary to assign any value to nDataStrAlign in this case. When bStrData is nil, Bmp is shown centered. ).
Please check if your RC file contains resource with the exact spelling IMAGE_FALSE. If the browse does not find a resource with the given name, it shows blank.
You can also check this if oBrw:aCols[7]:addResource( "IMAGE_FALSE" ) is true or false. It it is true, the browse could successfully load the resource. If it is false, the browse could not load the resource.
Dear Nageswara..
After adjusting my code.... this her!
Code: Select all
oBrw:aCols[7]:bStrData := NIL
oBrw:aCols[7]:addResource( "IMAGE_TRUE" ) <- this is the true position with a correctly resource name
oBrw:aCols[7]:addResource( "IMAGE_FALSE" )<- this is the false position with a correctly resource name
oBrw:aCols[7]:bBmpData := {|| if( ( cAlias )->situacao, 1, 2 ) }
However, still an error
I'm testing passing the code block with the value 1 or 2... it's displays both images! So, the resource name is correctly!