for an extraction I create an array like this
- Code: Select all Expand view
static function Build_Array(oDbf,nRecord,oBrw)
local aTemp:= {}
local aRuote := {"Bari","Cagliari","Firenze","Genova",;
"Milano","Napoli","Palermo","Roma","Torino",;
"Venezia","Nazionale"}
local cTitle:= oDbf:data
IF !oDbf:eof()
oDbf:goto(nRecord)
AaDd(aTemp,{ aRuote[1], oDbf:ba1,oDbf:ba2,oDbf:ba3,oDbf:ba4,oDbf:ba5})
AaDd(aTemp,{ aRuote[2], oDbf:ca1,oDbf:ca2,oDbf:ca3,oDbf:ca4,oDbf:ca5 })
AaDd(aTemp,{ aRuote[3], oDbf:fi1,oDbf:fi2,oDbf:fi3,oDbf:fi4,oDbf:fi5 })
AaDd(aTemp,{ aRuote[4], oDbf:ge1,oDbf:ge2,oDbf:ge3,oDbf:ge4,oDbf:ge5 })
AaDd(aTemp,{ aRuote[5], oDbf:mi1,oDbf:mi2,oDbf:mi3,oDbf:mi4,oDbf:mi5 })
AaDd(aTemp,{ aRuote[6], oDbf:na1,oDbf:na2,oDbf:na3,oDbf:na4,oDbf:na5 })
AaDd(aTemp,{ aRuote[7], oDbf:pa1,oDbf:pa2,oDbf:pa3,oDbf:pa4,oDbf:pa5 })
AaDd(aTemp,{ aRuote[8], oDbf:rm1,oDbf:rm2,oDbf:rm3,oDbf:rm4,oDbf:rm5 })
AaDd(aTemp,{ aRuote[9], oDbf:to1,oDbf:to2,oDbf:to3,oDbf:to4,oDbf:to5 })
AaDd(aTemp,{ aRuote[10], oDbf:ve1,oDbf:ve2,oDbf:ve3,oDbf:ve4,oDbf:ve5 })
AaDd(aTemp,{ aRuote[11], oDbf:nz1,oDbf:nz2,oDbf:nz3,oDbf:nz4,oDbf:na5 })
oBrw:setarray(aTemp)
AEval( oBrw:aCols, { |o| o:cGrpHdr := cf(cTitle) }, 2, 6 )
Endif
RETURN NIL
and having as group header the data of the extraction
now I would like to create a hypothetically infinite array like this, command by final user (until 10 records)
( I draw it)
obviously changing the dates for each record
How I can make it , any help pls