Oh - also..

When working with arrays and especially functions that return arrays, always check for the array being not empty:
 Code:
$aData = SomeFunction()
If $aData < 0
  'No data!' ?
Else
  ; work the array contents
EndIf


Glenn
_________________________
Actually I am a Rocket Scientist! \:D