Bug in saving ?
Hi,
I'm having reports with a lot of OnCalc events, a few global functions and
variables. I'm modifying the code, and saving it. Sometimes, when I re-open
the report after saving, all my events lose their first line of code. For
example:
procedure ForVariableOnCalc;
begin
Value := 'Hello';
end;
I modify the code, for example changing "Hello" for "Good bye", I save and
re-open the report, here's what happens:
procedure ForVariableOnCalc;
Value := 'Hello';
end;
I lose the first line... any people having that problem ? I'm using Delphi
with Update Pack 1 and Report Builder 9.01.
David Caouette
Developer
Omniciel International inc.
I'm having reports with a lot of OnCalc events, a few global functions and
variables. I'm modifying the code, and saving it. Sometimes, when I re-open
the report after saving, all my events lose their first line of code. For
example:
procedure ForVariableOnCalc;
begin
Value := 'Hello';
end;
I modify the code, for example changing "Hello" for "Good bye", I save and
re-open the report, here's what happens:
procedure ForVariableOnCalc;
Value := 'Hello';
end;
I lose the first line... any people having that problem ? I'm using Delphi
with Update Pack 1 and Report Builder 9.01.
David Caouette
Developer
Omniciel International inc.
This discussion has been closed.
Comments
I am unable to recreate this behavior. You mention that this happens
"sometimes". Are you able to make this happen every time every time you
follow certain steps? If so, please let me know exactly how I can recreate
the behavior on my machine and I will research it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I have a template that were generated by my converter. There's a lot of
OnCalc and global Functions in it. Also, a lot of these codes are to get rid
of or to clean (perform additional manual code conversion). So, I use the
Delete contextual menu item in the calc Tab. Once it's done, I'm trying to
preview it for testing purposes and THAT'S happening... If you need more (
or clearer ) explanations, it'll be a pleasure.
David
Which version of Delphi are you using?
Thanks for the explanation, however I am still having trouble recreating
this behavior. Here are the steps I took...
1. Placed a report on a form and opened the designer.
2. Placed a TppVariable on the report and switched to the Calc tab.
3. Created a OnCalc event in RAP for the variable and added correct code.
4. Previewed the report.
5. Returned to the Calc tab, Deleted the OnCalc event and recreated it with
new code.
6. Previewed the report.
7. Returned to the Calc tab... should see the behavior here.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
if I start a report from scratch, I can't reproduce the problem. I'm using
Delphi 7 with Update Pack 1, ReportBuilder 9.01 Enterprise. I'll see if I
can reproduce the problem. Keep in mind that all RAP code was generated by a
report converter I built. Maybe I did something wrong in my conversion
routine. I called
raCodeModule.BuildAll(False)
to avoid exceptions. Thanks anyway for the answer.
David Caouette
you might try
1) coping the RAP code to the clipboard,
2) pasting it into Notepad,
3) erasing the RAP code event, and then
4) copying from the paste into TEdit and recreating it.
Sometimes I have found (I don't remember in RB--but I have seen it in
Delphi) that when doing conversions special characters can get into a file
and then the application doesn't function property.
Ed Dressel
DX Squad