Modify

Opened 11 years ago

Closed 10 years ago

#2995 closed Feature Request (Rejected)

Create and pass array as parameter in the parameter itself

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

Description

Sorry for my English, I am using a translator. It would be very useful to be possible to create and pass an array as a parameter in the parameter itself, as in Javascript and in the example below:

Javascript:

_alert(["Element 1", "Element 2", "Element 3"])

function _alert(array){
 alert(array[0]);
 alert(array[1]);
 alert(array[2]);
}

AutoIt concept:

_alert(["Element 1", "Element 2", "Element 3"])

Func _alert($array)
 MsgBox(0, '', $array[0])
 MsgBox(0, '', $array[1])
 MsgBox(0, '', $array[2])
EndFunc

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, 11 years ago

Version: 3.3.12.0

Automatic ticket cleanup.

comment:2 by Jos, 11 years ago

This works fine already:

Dim $a = ["Element 1", "Element 2", "Element 3"]
_alert($a)

Func _alert($array)
 MsgBox(0, '', $array[0])
 MsgBox(0, '', $array[1])
 MsgBox(0, '', $array[2])
EndFunc

comment:3 by Melba23, 10 years ago

Resolution: Rejected
Status: newclosed

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.