Using A Global Program
This may be obvious but I want to put some code
into a global procedure so I can call from the
Report Before Print. I keep getting an error
message saying that the procedure name is
unknown.
In Global Programs, I have
procedure SetTheFont(theName: TppDBText)
===
end;
In Before Print, I try
SetTheFont(ppDBText1);
and I get SetTHeFont is an undeclared identifier.
Help please...
into a global procedure so I can call from the
Report Before Print. I keep getting an error
message saying that the procedure name is
unknown.
In Global Programs, I have
procedure SetTheFont(theName: TppDBText)
===
end;
In Before Print, I try
SetTheFont(ppDBText1);
and I get SetTHeFont is an undeclared identifier.
Help please...
This discussion has been closed.
Comments
I tried it and it works fine for me in RAP. I think the problem that you
are passing ppDBText1 in RAP, when the naming in RAP would be DBText1 where
the pp prefix is removed.
Are you trying to call this in Delphi code? That won't work because the
SetTheText is only global inside of a single report's code module. One way
to accomplish this would be to call the method inside RAP and not from
Delphi code.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com