Once more ... RTFM !!!

read in $ 5.34 : A program should wait for at least half a second before sending ....

Example files are provided within PBP Cd ...

<<

' PicBasic program to demonstrate operation of an LCD in 4-bit mode
'
' LCD should be connected as follows:
' LCD PIC
' DB4 PortA.0
' DB5 PortA.1
' DB6 PortA.2
' DB7 PortA.3
' RS PortA.4 (add 4.7K pullup resistor to 5 volts)
' E PortB.3
' RW Ground
' Vdd 5 volts
' Vss Ground

( and so on ...)

those Example files plus MANY others are free to dowload from Melabs ...

Surprising ... some show how to use LCDs !!!

You know what ??? the folder's name is ... SAMPLES

DID you look at those files ???

SURE NO !!!

The bug is, once more, you didn't look for anything ... and that is not the very first time here !!!

Alain