Page 1 of 1

save another field on array

Posted: Fri Feb 22, 2019 9:43 am
by Silvio.Falconi
I have this xbrowse made with an array

Image

I can edit the last column

WITH OBJECT oBrowse:aCols[6]
:cEditPicture := '@ €99,999.99'
:nEditType := EDIT_GET
END

How I can to save also the filed n.12 on array I must save this calc = oBrowse:acols[5]-oBRowse:acols[6]

Re: save another field on array

Posted: Fri Feb 22, 2019 6:16 pm
by FranciscoA
Try this sample code:

Code: Select all | Expand

 oBrw:Neto:Value := oBrw:Precio:Value - oBrw:Descuento:Value  
 

Regards.

Re: save another field on array

Posted: Fri Feb 22, 2019 6:24 pm
by FranciscoA

Code: Select all | Expand

WITH OBJECT oBrowse:aCols[6]
   :cEditPicture := '@ €99,999.99'
   :nEditType := EDIT_GET
   :bOnChange := {|| oBrowse:aCols[12]:Value :=  oBrowse:aCols[5]:Value -  oBrowse:aCols[6]:Value  }
END

Re: save another field on array

Posted: Fri Feb 22, 2019 6:48 pm
by Silvio.Falconi
io not have that column (oBrowse:aCols[12]:Value) on xbrowse I have only it on array