How can strength be used outside of battle in Pokemon diamond?

you have to defeat Gym Leader number 6.