FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour multi dimensional array
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
multi dimensional array
Posted: Fri Jan 31, 2025 02:07 PM

How can I create and edit with xbrowse multi dimensional array of the type

{"Campo1",.t.,1,"nomedbf",{"test1","test2","test3"} ,0}

I wish add/edit only the subarray {"test1","test2","test3"}

but an init I have {"Campo1",.t.,1,"nomedbf",{} ,0}

and I wish edit only the sub array {} 5 field of main 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: multi dimensional array
Posted: Sat Feb 01, 2025 01:12 AM
   local aArray := {"Campo1",.t.,1,"nomedbf",{"test1","test2","test3"} ,0}

   //
   XBROWSER aArray[ 5 ] FASTEDIT
   // or
   XBROWSER { aArray } SETUP ( oBrw:aCols[ 5 ]:nEditType := 1 )
   // or
   XBROWSER aArray FASTEDIT SETUP ( oBrw:aCols[ 1 ]:bEditWhen := { |o|o:oBrw:nArrayAt = 5 } )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: multi dimensional array
Posted: Sat Feb 01, 2025 09:59 AM
nageswaragunupudi wrote:
   local aArray := {"Campo1",.t.,1,"nomedbf",{"test1","test2","test3"} ,0}

   //
   XBROWSER aArray[ 5 ] FASTEDIT
   // or
   XBROWSER { aArray } SETUP ( oBrw:aCols[ 5 ]:nEditType := 1 )
   // or
   XBROWSER aArray FASTEDIT SETUP ( oBrw:aCols[ 1 ]:bEditWhen := { |o|o:oBrw:nArrayAt = 5 } )
Too Hard for me I must found another solution
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