TheDcoder Posted January 29, 2016 Share Posted January 29, 2016 Hello! I was wonder if it OK for me to use datatypes other than strings & integers... I tested it and it works! But the help file states: (Beta Helpfile -> AutoIt -> Language Reference -> Variables) Quote ...An element can only be accessed by a key, which can be either a string or an integer. So yeah, will I able to continue using other datatypes normally even in the future releases of AutoIt? Thanks in Advance! TD EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 29, 2016 Administrators Share Posted January 29, 2016 The datatype is converted to an integer before it is used as the index using the normal conversion rules. So nothing will change there. TheDcoder 1 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
TheDcoder Posted January 29, 2016 Author Share Posted January 29, 2016 Oh , Thanks! This script conforms it : #include <MsgBoxConstants.au3> Local $mMap[] $mMap[1] = "Element with 1 as the key" MsgBox($MB_OK, "Test", $mMap[1.5]) ; Because Int(1.5) = 1 TD P.S It would be nice if it was true... EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now