Modify

Opened 10 years ago

Closed 10 years ago

#3228 closed Feature Request (Rejected)

Return empty string on failure for _ArrayToString

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

There are mixed returns for the _ArrayToString function, the proper representation of the string created from the array, -1, and 1. Returning anything other than an empty string could be interpreted as a valid return for this function. Could all of the failure returns from this function be changed to an empty string?

A quick example:

#include <Array.au3>
Local $aArrayOfNum = ""
ConsoleWrite("Numbers in $aArrayOfNum = " & _ArrayToString($aArrayOfNum) & @CRLF)

Even though $aArrayOfNum is not a valid array it returns a value that could be interpreted as a valid return.

Attachments (0)

Change History (2)

comment:1 by TicketCleanup, 10 years ago

Version: 3.3.14.0

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 10 years ago

Resolution: Rejected
Status: newclosed

No the doc is correct as a array is not return is this case so the error checking must be done by checking @error.
It is as the return of UDF function handle such error.
You may find discrepency in other UDF but not in this one

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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