Modify

Opened 5 years ago

Closed 4 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 Changed 5 years ago by TicketCleanup

  • Version 3.3.12.0 deleted

Automatic ticket cleanup.

comment:2 Changed 5 years ago by Jos

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 Changed 4 years ago by Melba23

  • Resolution set to Rejected
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.