If you noticed you're rewriting that coordinate formatting routine
each time you need a slightly different output, DmsFormat is for you -
next time, you'll simply use a different format string.

Read the full article: http://www.mp2kmag.com/articles.asp?ArticleID=61