1. This is a PicBasic Forum and not C.
2. The above compiler does not support 24 or 32 series PICs.
3. Maybe your PortA is input only, so check your PICs datasheet.

Ioannis