#include "fivewin.ch"
#include "xbrowse.ch"
Function Sheet()
Local odlg,oFld,oBrwCalc,oBrwFormulas
Local aGet[2]
//local aDataCalc :=array(1000,1000)
//local aDataformulas :=array(1000,1000)
local aDataformulas := {{'', 'A', 'B', 'C', 'D' }, ;
{ 1, '', '', '', '' }, ;
{ 2, '', '', '', '' }, ;
{ 3, '', '', '', '' }, ;
{ 4, '', '', '', '' }, ;
{ 5, '', '', '', '' }, ;
{ 6, '', '', '', '' } }
local aDataCalc := {{'', 'A', 'B', 'C', 'D' }, ;
{ 1, '', '', '', '' }, ;
{ 2, '', '', '', '' }, ;
{ 3, '', '', '', '' }, ;
{ 4, '', '', '', '' }, ;
{ 5, '', '', '', '' }, ;
{ 6, '', '', '', '' } }
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
DEFINE DIALOG oDlg SIZE 400,440 PIXEL FONT oFont
@ 20,1 FOLDEREX oFld Prompt "Calc","Formulas" PIXEL;
SIZE 200, 200 OF oDlg
@ 10,10 XBROWSE oBrwCalc SIZE -10,-10 PIXEL OF oFld:adialogs[1]
* DATASOURCE aDataCalc AUTOCOLS ;
*CELL LINES NOBORDER
WITH OBJECT oBrwCalc
*:nWidths := 60
:setarray(aDataCalc)
:CreateFromCode()
END
@ 10,10 XBROWSE oBrwFormulas SIZE -10,-10 PIXEL OF oFld:adialogs[2] ;
DATASOURCE aDataformulas AUTOCOLS ;
CELL LINES NOBORDER
WITH OBJECT oBrwFormulas
:nWidths := 60
:CreateFromCode()
END
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return ni