Xbrowe with array

Xbrowe with array

Postby Eoeo » Sun Aug 26, 2012 7:38 pm

I have an array two dimension and I made a xbrowse


AAdd( atemp,{aString[nI],atop[nI]})

@ 30, 10 XBROWSE oLbx OF oDlg ;
SIZE 185,100 PIXEL
oLbx:SetArray(atemp)

If I select a record I wish Have the value of second col ( atop)

how I must make I tried also with oBrw:aArrayData:acols[2]
User avatar
Eoeo
 
Posts: 222
Joined: Mon Jun 04, 2012 12:00 pm

Re: Xbrowe with array

Postby ukoenig » Sun Aug 26, 2012 7:51 pm

Silvio,

@ 10, 10 XBROWSE oBrw OF oDlg ;
COLUMNS 1, 2 ;
HEADERS "Cars","Values" ;
COLSIZES 110, 110 ;
ARRAY aData LINES FASTEDIT CELL ;
SIZE 140, 200 PIXEL FONT oTxtFont ;
ON CHANGE { aData1 := aData[oBrw:nArrayAt, 1 ], ; // Value of 1. Column
aData2 := aData[oBrw:nArrayAt, 2 ], ; // 2. Column
oGet1:Refresh(), oGet2:Refresh() } // 2. get displays Value of Column 2

@ 10, 160 GET oGet1 VAR aData1 OF oDlg SIZE 48, 15 PIXEL ;
FONT oTxtFont COLOR 0, 16443068 UPDATE
@ 10, 212 GET oGet2 VAR aData2 OF oDlg SIZE 48, 15 PIXEL ;
FONT oTxtFont COLOR 0, 16443068 UPDATE

My new Sample shows how it works !!!

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Silvio.Falconi and 112 guests