AV at runtime when using incorrect IF statement
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
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.