FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE combined from DBF and Array
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM

XBROWSE combined from DBF and Array

Posted: Mon Jun 16, 2014 08:35 PM

Hi,

Is it possible to create xBrowse combined from few fields from DBF and few elements from Array

Best regards,

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: XBROWSE combined from DBF and Array

Posted: Mon Jun 16, 2014 09:20 PM
In many ways, depending on the requirement.
Here is one example
Code (fw): Select all Collapse
aItems := { { 1, "Name1", 20 }, { 2, "Name2", 30 }, { 3, "Name3", 40 } }

@ 0,0 XBROWSE oBrw OF oWnd DATASOURCE "MYDBF" ;
   COLUMNS "DATE", "ITEMCODE", ;
           { || aItems[ MYDBF->ITEMCODE, 2 ] }, ;
           { || aItems[ MYDBF->ITEMCODE, 3 ] }, ;
           "QUANTITY" ;
   HEADERS "Date", "Code", "ItemName", "Price", "Quantity" ;
   <otherClauses,...>
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion