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 , 11 years ago
| Version: | 3.3.12.0 |
|---|
comment:2 by , 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 , 10 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Automatic ticket cleanup.