OOps, my mistake. Instead use the following:
Thanks Dave for correcting meCode:i var byte lowest var byte highest var byte CheckHigh Var Byte CheckLow Var Byte myarray var byte[50] CheckHigh=0 : CheckLow=255 for i = 0 to 48 CheckHigh= MyArray[i] MAX MyArray[i+1] If CheckHigh>Highest then Highest=CheckHigh Lowest= MyArray[i] MIN MyArray[i+1] If CheckLow<Lowest then Lowest=CheckLow next i![]()
Bookmarks