Jump to content

Int() no error


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...