Get the SystemVariableCopyNo value
Hello again,
I'm trying to use RAP to change the Header and Band Visibility for user
reports. I had/have this working in D2007 code using the FCopy example.
Need to have more end user flexibilty.
To test, I added a label and the report as well as the SysVar, it prints
correctly, but the following compiles but doesn't work.
if (SystemVariableCopyNo.Caption = '1') then
Label22.Caption := 'Copy 2';
Thanks,
Mark
I'm trying to use RAP to change the Header and Band Visibility for user
reports. I had/have this working in D2007 code using the FCopy example.
Need to have more end user flexibilty.
To test, I added a label and the report as well as the SysVar, it prints
correctly, but the following compiles but doesn't work.
if (SystemVariableCopyNo.Caption = '1') then
Label22.Caption := 'Copy 2';
Thanks,
Mark
This discussion has been closed.
Comments
Unfortunately it is not possible access this value from any SystemVariable
events. The workaround is to keep track of the copy number yourself using a
global variable in RAP. See the following article/(RAP) example.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Formatting/How_To...Unique_Caption_for_Each_Copy
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com