View Single Post
  #14 (permalink)  
Old 05-07-2008, 04:16 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,852
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Tutorial - Smarterchild copy

Nice. You need to make sure you validate it, however - in case the user returns a null result.
Incidentally, the InputBox() function is not always the best one to use - if the user clicks Cancel, then "" gets returned. If the user clicks OK and doesn't type anything, then "" gets returned. In other words, there's no way of telling if the user pressed Cancel or not. Therefore, maybe a custom dialogue box would be a better choice for a nontrivial program.
__________________


Mr. Xav | Website | Forums | Blog
Reply With Quote