since some times I changed the way of filling the PRINTAREA of EasyReport.
I have now an array where I have the information. I the first column I have a description of the ID.
This way maintaining is easier.
Best regards,
Otto
- Code: Select all Expand view
METHOD prn_firma(oVRD) CLASS TQuitt
PRINTAREA 41 OF ::oVRD ;
ITEMIDS { 401, 402, 403, 404, 405 } ;
ITEMVALUES { setup():cFirma, setup():cCompany, setup():cAddr1, setup():cAddr2, setup():cAtu }
return nil
//----------------------------------------------------------------------------//
- Code: Select all Expand view
- METHOD prn_firma() CLASS TKopie
local aID_Strings := {}
local aID := {}
local aStrings := {}
*----------------------------------------------------------
aID_Strings := {;
{ "Firma", 401, setup():cFirma }, ;
{ "Adr1", 402, setup():cCompany }, ;
{ "Adr2", 403, setup():cAddr1 }, ;
{ "Adr3", 404, setup():cAddr2 }, ;
{ "ATU", 405, setup():cAtu } }
AEval( aID_Strings, { |a| AADD( aID, a[2] ), AADD( aStrings, a[3] ) } )
PRINTAREA 41 OF ::oVrd ;
ITEMIDS aID;
ITEMVALUES aStrings
return nil