WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Arrays
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Reverse Array

 Keywords:  reverse sort array elements

#DefineFunction ArrayReverse(Old)
   RowCount = ArrInfo(Old,1)
   ColCount = ArrInfo(Old,2)
   New = ArrDimension(RowCount,ColCount,0,0,0)
   RowCount = RowCount-1
   ColCount = ColCount-1
      For x = 0 To RowCount
        xNew = RowCount-x
        For y = 0 To ColCount
            New[xNew,y] = Old[x,y]
        Next
   Next
   Return New
 #EndFunction

Article ID:   W17666
Filename:   Reverse Array.txt
File Created: 2009:10:13:10:16:34
Last Updated: 2009:10:13:10:16:34