Modify

#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 by Jpm, on Jun 15, 2009 at 10:32:13 AM

Milestone: 3.3.1.2
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

comment:2 by athiwatc@…, on Jun 15, 2009 at 1:14:14 PM

Thanks.

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.