Modify

Opened 5 years ago

#2695 new Feature Request

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 (0)

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 new 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.