CliftonL Posted July 25, 2014 Share Posted July 25, 2014 Global $myArr[0] _ArrayAdd( $myArr, "Add this sting" ) _ArrayDisplay( $myArr ) The above code works in the latest stable version v3.3.12.0. It continued to work through version 3.3.13.6. Thereafter, the above code produces and empty array. If I change the declaration of $myArr[0] to $myArr[1] it works in all versions but it produces the undesirable result of an empty [0] index and the string is put in index [1]. Maybe I'm doing this incorrectly all along and the fact that it worked was a fluke in the first place. I've changed my code to delete the resulting empty index ( _ArrayDelete( $myArr, 0) ), but it seems like the original code should have worked. My intention is to create an empty array and populate it progressively as my script executes. From reading the help docs _ArrayPush() would not work in this scenario either because it would delete elements as they would be added. Your observations can only make me better at using this excellent tool! Link to comment Share on other sites More sharing options...
jchd Posted July 26, 2014 Share Posted July 26, 2014 (edited) Your code is correct. The beta introduces a bug on UBound($myArr, 0) which now returns 0 (it was returning 1 in this case before some array code rewrite). You can temporarily bypass the issue by changing the beta Array.au3 line 90: ; was Case 1 ; make it: Case 0, 1 I have reported the bug. EDIT: fixed in the next beta. Edited July 26, 2014 by jchd This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) 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