Can you help me out with one more thing, that is how can i read an sms and store it in an array, lets say an sms contains hi, then which syntax should i use, or if there is some alternative better way...

Syntax1:
buffer var byte[90]

serout portb.6,t300,["at+cmgr=1",13]

SERIN portb.7,t300,1000,oops,["+"],buffer[0],buffer[1]


Syntax2:
buffer var byte[90]

serout portb.6,t300,["at+cmgr=1",13]

for x=1 to 3
SERIN portb.7,t300,1000,oops,buffer(x)
next x


or is there any other way to store the sms in the array,

thanks a lot

Best Regards
Jamshid Dastur