Do you have Include "modedefs.bas" somewhere near the beginning of your code?

Also check out the SERIN2 command.