sorting 2 dimensional Arrays !finally , that was easy to implement (nearly the same as for single dimension Arrays)
try this :
code:
break on clscall "path\SortArray.udf"
dim $array[5]
$array[0] = "Stuttgart","jpols","Member No.",611
$array[1] = "Houston","Bryce","Member No.",600
$array[2] = "Toronto","Shawn","Member No.",173
$array[3] = "Brisbane","cj","Member No.",677
$array[4] = "Jyvaeskylae","Lonkero","Member No.",2306
$array = SortArray($array,1,4) ;ascending depending on Member No. ($array[x][3])
for $rc = 0 to ubound($array)
for $col = 0 to ubound($array[$rc])
at($rc*2,$col*15)$array[$rc][$col]
next
next
get $
will return (No rating by any means
) :
code:
Toronto Shawn Member No. 173Houston Bryce Member No. 600
Stuttgart jpols Member No. 611
Brisbane cj Member No. 677
Jyvaeskylae Lonkero Member No. 2306
Jochen
P.S.: Brian , are you interested in this ?
[ 09 July 2001: Message edited by: jpols ]