Modify

Opened 11 years ago

Closed 4 years ago

#2695 closed Feature Request (Rejected)

For ... in ... next loop modifying items

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

Description

Would be cool to be able to modify items in a for each loop.

Something like this perhaps:

#AutoIt3Wrapper_Run_Au3Check=n

#include <Array.au3>

Local $a[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

For ByRef $item In $a
	$item += 10
Next

_ArrayDisplay($a)

Mat

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Jpm

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

Sorry for the so late answer.
But the doc has been written on what can be reasonably implemented, so we will not add such improvement

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.