Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1023 closed Bug (Fixed)

Error in document _FileListToArray

Reported by: anonymous Owned by: Jpm
Milestone: 3.3.1.2 Component: Documentation
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

There's an error in the example of _FileListToArray

#Include <File.au3>
#Include <Array.au3>
$FileList=_FileListToArray(@DesktopDir)
If @Error=1 Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf
_ArrayDisplay($FileList,"$FileList")

The @error should be = to 4 not 1

#Include <File.au3>
#Include <Array.au3>
$FileList=_FileListToArray(@DesktopDir)
If @Error=4 or @Error=1 Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf
_ArrayDisplay($FileList,"$FileList")

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Jpm

  • Milestone set to 3.3.1.2
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.3.1.2

comment:2 Changed 16 years ago by athiwatc@…

Thanks.

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.