FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour save another field on array
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
save another field on array
Posted: Fri Feb 22, 2019 09:43 AM
I have this xbrowse made with an array



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]
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
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: save another field on array
Posted: Fri Feb 22, 2019 06:16 PM
Try this sample code:
Code (fw): Select all Collapse
  oBrw:Neto:Value := oBrw:Precio:Value - oBrw:Descuento:Value

Regards.
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: save another field on array
Posted: Fri Feb 22, 2019 06:24 PM
Code (fw): Select all Collapse
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
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: save another field on array
Posted: Fri Feb 22, 2019 06:48 PM

io not have that column (oBrowse:aCols[12]:Value) on xbrowse I have only it on array

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

Continue the discussion