View Single Post
Old 10-09-2012, 03:33 PM   PM User | #13
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
if(reply != "Stars" || reply != "S" || reply != "Planets" || "P" || ); {

See the error here?

Try/catch is used to trap runtime errors. For example, function mis-spelled fucntion. Not a validation tool.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 10-09-2012 at 03:36 PM..
Philip M is offline   Reply With Quote