Jump to content

Search the Community

Showing results for tags 'error nested array bug'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. 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!
×
×
  • Create New...