Ther is no something like $pos++, and that would be easy like $array[$pos++]
I cant find out what is the solution for this problem, maybe someone can help me
Thank you!
#include <array.au3>
Local $array[1024]
Local $pos = -1
$array[PosIncrease()] &= "start"
For $i = 1 To 10
$array[PosIncrease()] &= "new value"
ConsoleWrite($pos & @CR)
Next
$array[PosIncrease()] &= "end"
_ArrayDisplay($array)
Func PosIncrease()
$pos += 1
ConsoleWrite(" ++ "& $pos & @CR)
Return $pos
EndFunc