Jump to content

_ArrayAdd() not incrementing array size?


Go to solution Solved by Subz,

Recommended Posts

This is the script

#include <Array.au3>

GLOBAL $GROUP = INIReadSection(@ScriptDir & "\config.ini", "GROUP")
_ArrayDisplay($GROUP)

_ArrayAdd($GROUP, "X|")
_ArrayAdd($GROUP, "Y|")
_ArrayDisplay($GROUP)

config.ini

[GROUP]
A=x
B=x
C=x

1st _ArrayDisplay shows $GROUP[0][0] = 3

After ArrayAdd, why 2nd _ArrayDisplay still shows $GROUP[0][0] = 3?

 

Is it because _ArrayAdd threats the array as zero index?

 

 

 

Edited by Burgaud
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...