Home RAP

Access violation in rbRAP117.bpl

edited April 2009 in RAP
Using Delphi 7 and Report Builder 11.04 Enterprise. If the following code is
put into the BeforeGenerate event of the Detail band, it compiles OK but
when the report is run an access violation in rbRAP117.bpl occurs.

if current_pupils.'gender' = 'F' then
DBCheckBox1.CheckBoxColor := clFuchsia
else
DBCheckBox1.CheckBoxColor := clBlue;

Now obviously the code shouldn't compile, the if statement should read:

if current_pupils['gender'] = 'F' then

Can anything be done about this to stop the code compiling?

Paul Hunt
WCBS Ltd.

Comments

This discussion has been closed.