Jump to content
Sign in to follow this  
Shevilie

Int() no error

Recommended Posts

Shevilie

EDIT: My bad I did found the function StringIsInt later.. Then I will suggest Int() to have StringIsInt as a affil in the helptext :)

I tried to provoke an error via the Int() function

$var = Int("rr")
ConsoleWrite(@error)

This produce 0 to be outputted. I can read in the helpfile that the funtion accepts string as an argument. But shouldn't it check if an actually number is produced?? Or have I missed something? Well some kind of error saying that the function was not able to convert the string to a number :D

EDIT: My bad I did found the function StringIsInt later.. Then I will suggest Int() to have StringIsInt as a affil in the helptext :D

Edited by Shevilie

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×