Hi all,
another xbrowse issue.
I have an array with the second element (aarray[x,2]) numeric editable.
I would like to use the picture "99.9" for the value on the first row and "99.99" for the value on the second row.
Any suggest how can I make this ?
Thanks in adance
This self-contained sample show my problem.
function Main()
local oDlg, oBrw, aArray
set epoch to 1920
aArray:={}
aadd(aArray,{"Marc",10.2}) && I have a one digit value
aadd(aArray,{"Luca",6.55}) && I have a two digit value
DEFINE DIALOG oDlg SIZE 300, 200
@0,0 XBROWSE oBrw OF oDlg ARRAY aArray AUTOCOLS
oBrw:aCols[2]:cEditPicture := "@E 999.99" && <-------- ? ?
oBrw:aCols[2]:nEditType := 1
oBrw:aCols[2]:bOnPostEdit := {|o,x| nLastCell:=oBrw:nArrayAt,aArray[oBrw:nArrayAt,2]:=x}
oBrw:lFastEdit:=.t.
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTER
return nil