rifter1818
Well-known member
Im creating a general sorting algorythm, pretty simple but i want it to be able to sort any array,....
so lets say i have an array of blahs
public structure blah
public x,y as integer
end structure
and i want this array sorted by the xs...
public sub sort(array() as object,subobject as ??????)
if array(i).subobject < array(i+1).subobject then
.......
end if
....
end sub
sorry for the shortened code but the concept is so simple. i just need to know how to pass elemnts to the functions / subs.. Thanks for all your help
so lets say i have an array of blahs
public structure blah
public x,y as integer
end structure
and i want this array sorted by the xs...
public sub sort(array() as object,subobject as ??????)
if array(i).subobject < array(i+1).subobject then
.......
end if
....
end sub
sorry for the shortened code but the concept is so simple. i just need to know how to pass elemnts to the functions / subs.. Thanks for all your help