Jump to content

Search the Community

Showing results for tags 'define'.



More search options

  • 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


Location


WWW


Interests

Found 1 result

  1. Hello, I am using this function: Func ListScripts($sPath) Local $aFilesAU3 = _FileListToArray($sPath, "*.au3", 1, True) If @error = 4 Then Local $aFilesAU3[1] $aFilesAU3[0] = 0 EndIf Local $aFilesA3X = _FileListToArray($sPath, "*.a3x", 1, True) If @error = 4 Then Local $aFilesA3X[1] = 0 $aFilesA3X[0] = 0 EndIf If $aFilesAU3[0] = 0 And $aFilesAU3[0] = 0 Then Return Local $aReturn[UBound($aFilesAU3) + UBound($aFilesA3X) - 2] $aReturn[0] = $aFilesAU3[0] + $aFilesA3X[0] $iFileCount = $aFilesAU3[0] + $aFilesA3X[0] For $i = 1 To $aFilesAU3[0] $aReturn[$i] = $aFilesAU3[$i] Next _ArrayConcatenate($aReturn, $aFilesA3X, 1) Return $aReturn EndFuncBut It works only when the path contains both au3 & a3x files I get this error: Missing subscript dimensions in "Dim" statement. Thanks in advance, TD
×
×
  • Create New...