Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1023 closed Bug (Fixed)

Error in document _FileListToArray

Reported by: anonymous Owned by: J-Paul Mesnage
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 J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.2

comment:2 by athiwatc@…, 17 years ago

Thanks.

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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