Modify ↓
Opened 10 years ago
Closed 9 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 10 years ago by TicketCleanup
- Version 3.3.12.0 deleted
comment:2 Changed 10 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 9 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.
Note: See
TracTickets for help on using
tickets.
Automatic ticket cleanup.