[fpc-devel] How to avoid Runtime error 231?

Dusan Halicky dusan.halicky at gmail.com
Sun Jun 1 14:58:01 CEST 2008


I have following test program:

{$mode delphi}
var a,b : variant;
begin
  a := 'foo';
  b := 5;
  writeln(a+b);    // here Runtime Error appear
  // ... other code
end.

But I need to continue to work, even after Runtime Error 231, I've
tried try-except and {$I-} but it doesn't help. Thanks



More information about the fpc-devel mailing list