I have this row

if Press "-" the value become 0 I wish the value is 1 if the value is 0
this the code
I allready tried with
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),oCol:VarPut(1)) }
or
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),oCol:VarPut(oCol:= 1)) }
or
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),1) }
with no success!!!
the value cannot be zero
any solution please ?

if Press "-" the value become 0 I wish the value is 1 if the value is 0
this the code
WITH OBJECT oBrowse:aCols[ 3]
     :nWidth     := 100
     :nDataStrAlign := AL_CENTER
     :AddBitmap( { FW_BmpPlus(), FW_BmpMinus() } )
     // Right Button
     :nEditType   := EDIT_BUTTON
     :bEditBlock   := { |r,c,oCol| oCol:Value + 1 }
     :nBtnBmp    := 1
     :lBtnTransparent  := .t.
     // Left Button
     :bBmpData    := { |v,lSel| If( lSel, 2, 0 ) }
     :bBmpAction   := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),) }
         :bOnChange := bCalcRow
    ENDI allready tried with
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),oCol:VarPut(1)) }
or
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),oCol:VarPut(oCol:= 1)) }
or
:bBmpAction := { |oCol| IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),1) }
with no success!!!
the value cannot be zero
any solution please ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com