interfacing pic184f450 with 16X2 lcd in four bit mode?
I wonder how this code is getting compiled.
The declaration of "i" is commented and still you are using the variable.

My Suggestions:


Initialize "i" with 0, it might be getting random value and your while loop is not getting executed at all.
Try increasing delay for High to Low transition on EN Pin, say around 50msec.
Simulate this code using simulator or something if you are so sure about Hardware connection. 
Code says LCD is connected on Port A and comment says it's on Port B (first line of lcdcmd and lcddata) 


Never forget the Golden Rule:


  "When Code and comments don't match, probably both are wrong"