FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse and Array
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Xbrowse and Array
Posted: Tue Feb 08, 2022 07:10 PM

Hello Everyone,

Sorry for this very basic question.

How do I pull value from specific columns in XBROWSE when I am using an array. I am looking to get data from row 3, columns Asset No, Category and Descrition.

REDEFINE XBROWSE oItems ID 6000 ;
HEADERS "ASSET NO.", "CATEGORY", "DESCRIPTION", "VISUAL", "UT", "PT", "RFID Tag", "CERT Profile" ;
FIELDSIZES 200 , 300 , 608 , 100 , 100, 100, 400 , 200 ;
OF oDlg ARRAY aItems AUTOCOLS FONT oFont1

Thank you,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: Xbrowse and Array
Posted: Tue Feb 08, 2022 07:44 PM

I was able to find solution in sample code

oItems:aArrayData[ oItems:nArrayAt, 1 ]

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse and Array
Posted: Wed Feb 09, 2022 04:38 AM
Code (fw): Select all Collapse
oItems:aArrayData[ oItems:nArrayAt, 1 ]

can also be written as
Code (fw): Select all Collapse
oItems:aRow[ 1 ]
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion