Modify ↓
Opened 7 years ago
Closed 7 years ago
#3592 closed Bug (Duplicate)
_ArrayAdd doesn't work
Reported by: | labichea | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.14.3 | Severity: | None |
Keywords: | _ArrayAdd | Cc: |
Description
_ArrayAdd adds blank lines and not the content.
Check the first example in the Help of _ArrayAdd. Only blank lines have been added.
#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 Local $sSingleFill = "New Item 2" _ArrayAdd($aArray, $sSingleFill) _ArrayDisplay($aArray, "1D - Single") ; Add a delimited string - each item adds new element $aArray = $aArray_Base Local $sFill = "" For $i = 1 To 5 $sFill &= "New Item " & $i + 1 & "|" Next $sFill = StringTrimRight($sFill, 1) MsgBox($MB_SYSTEMMODAL, "Delimited string to add", $sFill) _ArrayAdd($aArray, $sFill) _ArrayDisplay($aArray, "1D - Delim string") ; Add a 1D array - each element adds new element $aArray = $aArray_Base Local $aFill[5] For $i = 0 To 4 $aFill[$i] = "New Item " & $i + 2 Next _ArrayDisplay($aFill, "Array to add") _ArrayAdd($aArray, $aFill) _ArrayDisplay($aArray, "1D - 1D array")
Attachments (0)
Change History (1)
comment:1 Changed 7 years ago by Jos
- Resolution set to Duplicate
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
https://www.autoitscript.com/trac/autoit/ticket/3587
https://www.autoitscript.com/forum/topic/192254-33143-fixes/