Xbrowse and Array

Xbrowse and Array

Postby cdmmaui » Tue Feb 08, 2022 7: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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: Xbrowse and Array

Postby cdmmaui » Tue Feb 08, 2022 7: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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: Xbrowse and Array

Postby nageswaragunupudi » Wed Feb 09, 2022 4:38 am

Code: Select all  Expand view
oItems:aArrayData[ oItems:nArrayAt, 1 ]
 

can also be written as
Code: Select all  Expand view
oItems:aRow[ 1 ]
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10627
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests