Hi all. I was wondering how can I send to the terminal of my PC using MAX232 the hex value of a variable.

hserout [dummydata] will give me the the dec value..Any ideas.

Also a question about Arrays.

I want to create an array with byte values in it and read and write to it. Will this be correct:

Array1 var byte[4]
.
....
.
for i=0 to 3
array[i]=i
i=i+1
next i

will this give the following result??
array1[0]=0
array1[1]=1
array1[2]=2
array1[3]=3

Thanx!