Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.pascal.borland    |    Borland Pascal was actually pretty neat    |    2,978 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,079 of 2,978    |
|    Robert AH Prins to Ruud Baltissen    |
|    Re: Runtime error 205    |
|    28 Oct 04 11:45:10    |
   
   From: prino@onetel.com   
      
   "Ruud Baltissen" wrote in message   
   news:8b0a868e.0410280059.174aee63@posting.google.com...   
   > Hallo allemaal,   
   >   
   > var   
   > i : integer;   
   > str : string;   
   > r : real;   
   >   
   > begin   
   > str := '1.234567898765E40';   
   > {$I-} val(str, r, i); {$I+}   
   > writeln(r);   
   > end.   
   >   
   > The above causes error 205. But what I want is to be able to handle   
   > the error myself. The {$I-} doesn't help. What directive should I use   
   > instead? Or something else?   
   > Thanks for any help!   
      
   Putting the $I directives around the writeln(...) makes a bit more   
   sense...   
      
   Robert   
   --   
   Robert AH Prins   
   prino at onetel dot com   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca