I do not have no idea who this work?
sRead VAR WORD[10]
sValue VAR WORD
Example
for x=1 to 10
sValue=MAX sRead[x]
next x
I do not have no idea who this work?
sRead VAR WORD[10]
sValue VAR WORD
Example
for x=1 to 10
sValue=MAX sRead[x]
next x
jetpr,
good day. sVar=MAX sRead[x] command will not give the element with highest value in the sRead array. MAX and MIN operator will only give you a (limits) ceiling or floor value from an operation. the web manual seems to be clear, http://www.microengineeringlabs.com/resources/pbpmanual and look for the max and min operator with example.
regards,
yettie
I now that i have the manual.
If some one don this some help
for x=1 to 10
sValue= sRead[x]
next x
You need to compare EVERY individual element in the array against sValue and then if it is bigger to replace sValue with that array elements content. This is one of those 'homework' type questions... which you need to think out for yourself.
Bookmarks