[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;
  a := 'foo';
  b := 5;
  writeln(a+b);    // here Runtime Error appear
  // ... other code

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