Board index » delphi » Run Error 106 GO AWAY!!!!!!!!!!!!!!

Run Error 106 GO AWAY!!!!!!!!!!!!!!

I hope someone can help me I've got a bit of a dilemia, I know there must
be a way but can't work it out.  

I'm trying to make a program error proof, I've got an input which has to
be an integer, but whenever the user of the program inputs an invalid
integer the program crashes with the run error 106.  

Can someone please help me by telling me how to over come this problem.

All Help Is Much Apprieciated

Gavin Carter

gavin_car...@dial.pipex.com

 

Re:Run Error 106 GO AWAY!!!!!!!!!!!!!!


Quote
Gavin Carter wrote:

> I hope someone can help me I've got a bit of a dilemia, I know there must
> be a way but can't work it out.

> I'm trying to make a program error proof,

Highly idealistic, but that's your prerogative.  :-)

Quote
> I've got an input which has to
> be an integer, but whenever the user of the program inputs an invalid
> integer the program crashes with the run error 106.

Don't read into a numerical format.  Read into a string instead and use the
val() procedure to convert to a number with error checking.

Quote
> Can someone please help me by telling me how to over come this problem.

> All Help Is Much Apprieciated

> Gavin Carter

> gavin_car...@dial.pipex.com

--
Scott Earnest                      | _,-""-_,-""-_,-""-_,-""-_,-""-_,-" |
set...@ix.netcom.com (primary)     | We now return you to our regularly |
siny...@{*word*104}space.org (alternate) | scheduled chaos and mayhem. . . .  |

Other Threads