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 , 10 years ago
| Version: | 3.3.14.0 |
|---|
comment:2 by , 10 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
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

Automatic ticket cleanup.