rommeltm00
Programmer
good day to all
i want to use array on the report, here it goes
Dime db[100,4]
Dime cr[100,4]
SET ENGINEBEHAVIOR 70
sele b.cvoucherno,b.ccode,sum(b.namount),c.cdescripti;
from cvdata b,account c;
where b.cvoucherno=vvoucherno and b.ccode = c.ccode and b.namount>0;
group by b.ccode;
orde by b.namount desc;
INTO array db
sele b.cvoucherno,b.ccode,sum(b.namount),c.cdescripti;
from cvdata b,account c;
where b.cvoucherno=vvoucherno and b.ccode = c.ccode and b.namount<0;
group by b.ccode;
orde by b.namount desc;
INTO array cr
SET ENGINEBEHAVIOR 90
then on my report detail band
db[array_ctr,4] db[array_ctr,3]
cr[array_ctr,4] cr[array_ctr,3]
it only display the first data on the array
db array hold 2 items
cr array hold 5 items
this will be the output
guards fees 5000.00 cash in bank 4000.00
item s 10.00 items b 10.00
item sc1 100.00
item sc2 100.00
item sc3 300.00
i want to use array on the report, here it goes
Dime db[100,4]
Dime cr[100,4]
SET ENGINEBEHAVIOR 70
sele b.cvoucherno,b.ccode,sum(b.namount),c.cdescripti;
from cvdata b,account c;
where b.cvoucherno=vvoucherno and b.ccode = c.ccode and b.namount>0;
group by b.ccode;
orde by b.namount desc;
INTO array db
sele b.cvoucherno,b.ccode,sum(b.namount),c.cdescripti;
from cvdata b,account c;
where b.cvoucherno=vvoucherno and b.ccode = c.ccode and b.namount<0;
group by b.ccode;
orde by b.namount desc;
INTO array cr
SET ENGINEBEHAVIOR 90
then on my report detail band
db[array_ctr,4] db[array_ctr,3]
cr[array_ctr,4] cr[array_ctr,3]
it only display the first data on the array
db array hold 2 items
cr array hold 5 items
this will be the output
guards fees 5000.00 cash in bank 4000.00
item s 10.00 items b 10.00
item sc1 100.00
item sc2 100.00
item sc3 300.00