I don't think - but i hope - i'm gonna ever be able to help people here with very Dark Basic specific stuff, but i currently had a little task i needed this code for, and i'm happy i can finally put something here other than asking for help. Hope it helps anybody ever in the future.
So i guess this is rather for beginners, but a helpful little piece, if you have a bunch of data stored like this way:
'dim numbers(100)'
'numbers(1)=random number'
'numbers(2)=random number'
'numbers(3)=random number'
'.....'
You can get the highest and the lowest with this short code.
dim nums(10)
for t=1 to 10
nums(t)=rnd(100)
next t
highest=-1000.0
lowest=1000.0
for t=1 to 10
if highest<nums#(t) then highest=nums#(t)
if lowest>nums#(t) then lowest=nums#(t)
next t
for t=1 to 10
print nums(t)
next t
print
print "highest: ",highest
print "lowest: ",lowest
suspend for key