Hi guys.
I was working and I have found a little bug that was annoying me. It took me hours to solve it! Well not solve, but bypassing it!
Can anyone check this again? Is really a bug, it is intencional or I really made a mistake and I can't saw it?
The original code:
#include <Array.au3>
Local $aVector = MYFUNCTION()
_ArrayDisplay($aVector, "Vector")
_ArrayDisplay($aVector[4], "Sub-Vector")
ConsoleWrite($aVector[4][0] & @CRLF)
Func MYFUNCTION ()
Local $aTest = [ 6, 7, 8, 9 ]
Local $aReturn = [ 1, 2, 3, 4, $aTest ]
Return $aReturn
EndFunc
I can't DIRECTLY access the last element of my array (the sub-array) nested. Always give me error...
After hours, my bypass code:
#include <Array.au3>
Local $aVector = MYFUNCTION()
_ArrayDisplay($aVector, "Vector")
_ArrayDisplay($aVector[4], "Sub-Vector")
Local $aMyArray = $aVector[4]
_ArrayDisplay($aMyArray, "My Array")
ConsoleWrite($aMyArray[0] & @CRLF)
ConsoleWrite($aVector[4][0] & @CRLF)
Func MYFUNCTION ()
Local $aTest = [ 6, 7, 8, 9 ]
Local $aReturn = [ 1, 2, 3, 4, $aTest ]
Return $aReturn
EndFunc
Is that correct?
Thanks in advanced!