FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse array of objects
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Xbrowse array of objects
Posted: Fri Jun 29, 2012 08:33 PM

Hi! How can I set Xbrowse to array of objects? I need to display each object data's in columns, like code, description,price etc

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Xbrowse array of objects
Posted: Sat Jun 30, 2012 11:17 AM

Please review samples\inspect.prg to see if it is what you are looking for :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: Xbrowse array of objects
Posted: Sun Jul 01, 2012 04:57 PM
Antonio Linares wrote:Please review samples\inspect.prg to see if it is what you are looking for :-)


Cannot understand where I set the data to display.

FIELDS oBrw:cName, { |x| oBrw:Value( x ) }

Result of this : first cell in a row I have object name (which I don't need) and all other cells are blank. When I double click inspect object box is opened (I don't need this behaviour).
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: Xbrowse array of objects
Posted: Mon Jul 02, 2012 07:04 PM

Help, anyone?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Xbrowse array of objects
Posted: Mon Jul 02, 2012 07:14 PM

Mosh,

Please post here your PRG code and we review it, thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: Xbrowse array of objects
Posted: Mon Jul 02, 2012 08:11 PM
Antonio Linares wrote:Please review samples\inspect.prg to see if it is what you are looking for :-)


A already figured it out :

REDEFINE XBROWSE oBrw ID ID_ITBROW ;
FIELDS oBrw:cItemcode,oBrw:cDESCRIP, oBrw:nPrice ;
HEADERS "CODE", "DESCR","PRICE" ;
OF oDlg ;
ARRAY oSale:aItems ;
COLORS CLR_WHITE, CLR_BLUE

One more question - how do I control sizes of cells?
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Xbrowse array of objects
Posted: Tue Jul 03, 2012 06:15 AM
mosh1 wrote:
One more question - how do I control sizes of cells?


Code (fw): Select all Collapse
FIELDS oBrw:aRow:cItemcode,oBrw:aRow:cDESCRIP, oBrw:aRow:nPrice ;
HEADERS "CODE", "DESCR","PRICE" ;
COLSIZES 35, 40,40 ;
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: Xbrowse array of objects
Posted: Tue Jul 03, 2012 01:20 PM
anserkk wrote:
mosh1 wrote:
One more question - how do I control sizes of cells?


Code (fw): Select all Collapse
FIELDS oBrw:aRow:cItemcode,oBrw:aRow:cDESCRIP, oBrw:aRow:nPrice ;
HEADERS "CODE", "DESCR","PRICE" ;
COLSIZES 35, 40,40 ;


Thanks!

Continue the discussion