Hi Tim,
I'd love to be able to help you but I think you are in the wrong forum. I don't know which compiler you're using but this forum is for the Micro Engineering Labs PIC Basic Compilers (Standard and PRO).

Sorry....
/Henrik Olsson.