1. It might help if you tell us the MAKE and MODEL number of the LCD you are using... or even better, give us a url link to it's Datasheet.

2. What PIC are you using?

3. What version of PICBasic are you using?

As a tip, if you have a LCD problem, it's best to strip out all other code and concentrate solely on the problem with the LCD. It saves confusion with lots of additional irrelevant code distracting you.