The code is for 16F688 right? Then ANSEL is the way to go and no other way.
Datasheet page 36
M