Basically, since 0 is a valid integer, I'm trying to come up with an _Integer() function that sets @error if the input is not valid. Such as a string returned from InputBox() but I'd also like it to handle numeric input. Since the new AutoIt3 release has changed Int() not to set @error I need to roll my own. Here's what I have. I'm just wondering if anyone sees a bug waiting to happen. $i = _Integer("57.7") If @error Then MsgBox(0x1010, "Test", "Int() returned error code: " & @erro