Hello all!
I have this xbrowse which load the table and all fields are displayed accordingly...
I inserted below code and wanted to display the image depending on the value of :bEditValue...
How can I switch :bEditValue from 1 to 2 and vice-versa by double-clicking on the column?
If the inserted column is a field, it would not be the problem... but with the inserted column, i'm in trouble.
'Appreciate any help.
Regards,
I have this xbrowse which load the table and all fields are displayed accordingly...
I inserted below code and wanted to display the image depending on the value of :bEditValue...
...
oBrwPIC:InsCol( 2 )
oBrwPIC:aCols[2]:bEditValue := {|e| IF(e == Nil, 1, e) }
oBrwPIC:aCols[2]:addResource( 'checkbox16' )
oBrwPIC:aCols[2]:addResource( 'crossbox16' )
oBrwPIC:aCols[2]:bBmpData := {|| Eval(oBrwPIC:aCols[2]:bEditValue) }
oBrwPIC:aCols[2]:bLDClickData := {|x| x := Eval(oBrwPIC:aCols[2]:bEditValue),;
IF( x == 1, Eval(oBrwPIC:aCols[2]:bEditValue, 2),;
Eval(oBrwPIC:aCols[2]:bEditValue, 1) ),;
oBrwPIC:RefreshCurrent() }
...How can I switch :bEditValue from 1 to 2 and vice-versa by double-clicking on the column?
If the inserted column is a field, it would not be the problem... but with the inserted column, i'm in trouble.
'Appreciate any help.
Regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15