Jump to content

Recommended Posts

Posted

Hello
I notice a malfunction of the function "_ArrayAdd". The table is enlarged by one location, but this slot is empty.
You confirm ?

#include <Array.au3>
#include <MsgBoxConstants.au3>

Local $aArray_Base[2] = ["Org Item 0", "Org item 1"]
_ArrayDisplay($aArray_Base, "1D - Base array")

; Add a single item
Local $aArray = $aArray_Base
_ArrayDisplay($aArray_Base, "1D before")
Local $sSingleFill = "New Item 2"
_ArrayAdd($aArray, $sSingleFill)
_ArrayDisplay($aArray, "1D after")

(code extracted from the aid example)

I'm not always in my opinion...

  • Moderators
Posted

MimiOne,

Yes, I can confirm it, but I also can see the problem and know how to fix it.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

I confirm that the change in _ArrayAdd() do the regression

Certainly Melba23 can tell more

 

Edited: I post too late thanks Melba23

Edited by jpm
  • Moderators
Posted

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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