problem with ArrTranspose

Post Reply
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

problem with ArrTranspose

Post by Silvio.Falconi »

on a combobox I have

@ 42, 10 SAY "Listino :" OF oDlgMod SIZE 34, 8 PIXEL FONT oBold
@ 40, 65 COMBOBOX oTariffa:idlistino ITEMS ArrTranspose( aListini )[ 1];
OF oDlgMod SIZE 100,14 PIXEL FONT oFont


But oTariffa:idlistino is "01" or "02 or "03" and I wish show ArrTranspose( aListini )[ 1]
and it not found the data to show

if I make ArrTranspose( aListini )[ 2] run ok

How I can resolve it ?
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
User avatar
Silvio.Falconi
Posts: 7154
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: problem with ArrTranspose

Post by Silvio.Falconi »

found solution
nListino := AScan( alistini, { |a| a[ 2 ] == oTariffa:idlistino } )
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
Post Reply