Hello Unregistered ,
Originally Posted by DDDvvv Hi everyone. im trying to determine the highest and lowest variable in a 50 byte array. whats the easiest way to do it? yArray VAR BYTE[50] yLow VAR BYTE yLow = 255 yHigh VAR BYTE yHigh = 0 i VAR BYTE FOR i = 0 TO 49 IF yArray[i] < yLow THEN yLow = yArray[i] endif IF yArray[i] > yHigh THEN yHigh = yArray[i] ENDIF NEXT Not being duplicative just that ScaleRobotics Posted First. Norm
Last edited by Normnet; - 12th July 2012 at 20:53.
Forum Rules
Bookmarks