How to reverse the order of elements?
Posted: 17 May 2017, 22:51
Was trying to get this to work, forgive me if theres a command or existing function I can use, and please point it out for me.
Otherwise, what was I doing wrong? I'm missing it...
By the end of the loop: Name:= ["5", "4", "3", "4", "5"] Rather than: Name:= ["5", "4", "3", "2", "1"]
Thanks for your time.
Otherwise, what was I doing wrong? I'm missing it...
Code: Select all
Name:=["1","2","3","4","5"]
object:=[]
object:=Name
n:=0
while(n<NumGet(&object + 4*A_PtrSize)){
s:=NumGet(&object + 4*A_PtrSize)-n
++n
Name[n]:=object[s]
}
Thanks for your time.