Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Enhancement for RAP

edited January 2005 in General
Hi, I noticed that the following statement causes an Access Violation :

procedure MyVariableOnCalc(var Value: Variant);
begin
Value := - (Variable1.Value / Variable2.Value);
end;

==================================
"Could not execute program MyVariableOnCalc
Access violation at address (address) in module 'myproject.exe'. Read of
address 00000000"
==================================

I could workaround it by the following statement :

procedure MyVariableOnCalc(var Value: Variant);
begin
Value := (Variable1.Value / Variable2.Value) * -1;
end;

I discovered this while debugging my report, with several trials and
errors... it took me some time to put the finger on the problem. Will it be
fixed?

David Caouette
Developer

Comments

This discussion has been closed.