Get help for the alpha version of AutoHotkey v2 here. Please state the v2 version you are working with in the title when making a new topic.
2 posts • Page 1 of 1
What is the preferred method to explicitly convert a string to an integer? I have a large predefined Map<int → string> called Lookup. I receive an Input string which contains a valid integer, but it sometimes includes leading zeroes. E.g. AHK looks for Lookup["01"] instead of Lookup. I am currently using Lookup[Round(Input)], but I'm wondering if there is a more elegant solution.
that would be Integer(). either call it urself or override the map's __Item property to call it, so the client code wouldnt have to
Who is online
Users browsing this forum: No registered users and 1 guest