Opened 9 years ago
Closed 9 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 Changed 9 years ago by TicketCleanup
- Version 3.3.14.0 deleted
comment:2 Changed 9 years ago by Jpm
- Resolution set to Rejected
- Status changed from new to 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
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.
Automatic ticket cleanup.