Code: Select all
#include "FiveWin.ch"
#include "XBrowse.ch"
function Main()
local oDlg, oBrw1, oCol, oBrw2
USE Customer
DEFINE DIALOG oDlg TITLE "Two xbrowses" SIZE 410, 200
@ 0, 0 XBROWSE oBrw1 OF oDlg ALIAS "Customer" SIZE 100, 100
oCol = oBrw1:AddCol()
oCol:bStrData = { || Customer->First }
oCol:cHeader = "First"
oBrw1:CreateFromCode()
USE Test NEW
@ 0, 13 XBROWSE oBrw2 OF oDlg ALIAS "Test" SIZE 100, 100
oCol = oBrw2:AddCol()
oCol:bStrData = { || Test->( FieldGet( 1 ) ) }
oCol:cHeader = "First"
oBrw2:CreateFromCode()
ACTIVATE DIALOG oDlg
return nil