I am looking for a working sample demonstrating xBrowse displaying columns from 2 different DBF files in a single xBrowse using a SET RELATION
I tried the following code, but is giving run time error
- Code: Select all Expand view
// Contains Fileds GroupCode,GroupName
// Indexed on GroupCode
Use Group New Index Group
// Contains Fields AC_Code,Ac_Name,GroupCode
// Indexed on Ac_Code
Use Account New Index Account
Set Relation to GroupCode into Group
DEFINE WINDOW oWnd MDICHILD OF WndMain() TITLE "Account Heads Master" FROM 1,5 to 35.2,95
@ 0, 0 XBROWSE oBrw OF oWnd; // LINES CELL
COLUMNS 'Account->AC_NAME','Group->GROUPNAME' ;
HEADERS 'A/c Name','Group';
ALIAS 'Account' ;
FOOTERS CELL
ACTIVATE WINDOW oWnd ON INIT oBrw:SetFocus()
I tried with and without ALIAS clause
I am getting the following error message
Error description: Error BASE/1132 Bound error: array access
Called from: xbrowse.prg => SETCOLFROMRDD(0)
Called from: xbrowse.prg => TXBROWSE:SETRDD(0)
Called from: xbrowse.prg => XBRWSETDATASOURCE(0)
Called from: xbrowse.prg => XBROWSENEW(0)
Called from: .\Masters.PRG => ACMASTER(63)
Regards
Anser