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]
Xbrowe with array
Re: Xbrowe with array
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
@ 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

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.
i work with FW.
If you have any questions about special functions, maybe i can help.