Hi,
When you use the DEC modifier in the LCDOUT statement (or HSEROUT or SEROUT etc) it converts the binary value to ASCII. When you use it the ARRAYREAD (or HSERING or SERIN etc) it does the opposit, ie convert the ASCII representation of a number consisting of one or more digits (stored in the array in this case) into a binary number. For that to work in your particular example you need to load the array like
Code:
HN[0] = "3"
HN[1] = "2"
HN[2] = "1"
Then, to read it you can use Richards example but it'll only work if there's always 3 characters in the array. If the length differs you need to make sure that there's something NOT coresponding to the ASCII value of a digit or "-" after the last digit by, for example, clearing the array before loading a value to it.

/Henrik.