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

AV at runtime when using incorrect IF statement

edited June 2008 in RAP
Hi,

Not a big problem, but when using following incorrect IF statement (extra
AND) no compile time error is generated but instead an runtime error (AV) is
generated.

procedure varTestOnCalc(var Value: Variant);
begin
{ error in if statement generated AV at runtime }
{ Problem seen in RB10.07 and RB10.08 }
if ( Clients['Last Name'] = 'Janssen' ) and
then Value := 'Found'
else Value := '';
end;

Tested with RB10.07 and RB10.08.

Regards,
Jeroen R?ttink
This discussion has been closed.