Hi all,
having the following array
aArray:={}
aadd(aArray,{"Mark"," "})
aadd(aArray,{"Steve,"0"})
aadd(aArray,{"Robert",1"})
I want to permit the edit for the second column only if a numeric already value exist so in this case I can permit only to edit the Steve and Robert clause where a num value exit.
I tried to use the following code but the bEditWhen doesn't run.
oBrw425:aCols[2]:cEditPicture := "@E 999,999,999.00"
oBrw425:aCols[2]:bClrEdit := oBrw425:bClrStd
oBrw425:aCols[2]:nEditType := 1
oBrw425:aCols[2]:bEditWhen := {|o,x| valtype(o)="N"}
oBrw425:lFastEdit:=.t.
Probably my bEditWhen code is wrong. any ideas?
Thanks in advance