Modify

#368 closed Bug (Fixed)

Success of _ArrayToClip is now -1 (used to be 1 and as still documented)

Reported by: John.Rainbow@… Owned by: Gary
Milestone: 3.2.13.2 Component: Standard UDFs
Version: 3.2.12.0 Severity: None
Keywords: Cc:

Description

The "Success" return of function _ArrayToClip is now -1 (older production release returned "1" and the current documentation for this function is also "1").

The workaround is either to use the new "Success" value of "-1" (not recommended in case this function is corrected to the documentation) or to test that it is <> 0

For example, Return Flag in the script below shows as "-1" although it was successful (according to the documentation, success = 1)

#include <Array.au3>

Local $avArray = StringSplit("a,b,c,d,e,f,g,h,i", ",")
$iRetCode = _ArrayToClip($avArray, 1)
MsgBox(0, "Return Flag ", "$iRetCode = " & $iRetCode)
MsgBox(0, "_ArrayToClip() Test", ClipGet())

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, on Jun 11, 2008 at 2:00:32 PM

Milestone: Future Release

Automatic ticket cleanup.

comment:2 by Valik, on Jun 13, 2008 at 11:20:46 PM

Component: AutoItStandard UDFs
Owner: set to Gary

comment:3 by Gary, on Jun 14, 2008 at 2:14:17 AM

Milestone: 3.2.13.2
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.2

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


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