Page 1 of 1

Xbrowse and Array

Posted: Tue Feb 08, 2022 7:10 pm
by cdmmaui
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,

Re: Xbrowse and Array

Posted: Tue Feb 08, 2022 7:44 pm
by cdmmaui
I was able to find solution in sample code

oItems:aArrayData[ oItems:nArrayAt, 1 ]

Re: Xbrowse and Array

Posted: Wed Feb 09, 2022 4:38 am
by nageswaragunupudi

Code: Select all | Expand

oItems:aArrayData[ oItems:nArrayAt, 1 ]
 

can also be written as

Code: Select all | Expand

oItems:aRow[ 1 ]