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.
|