Then modify the sample code he gave you. Programming is an adventure, TRY something and see what it does (especially on simple things like this).
If you try something and it doesn't do what you want, either modify it and try again, or post it here with a 'it does ___, but I wanted ___' or a 'Why does this code do ____ I thought it would do ___' type of question.
Murtan
Practically a Master Poster
671 posts since May 2008
Reputation Points: 344
Solved Threads: 116