kb24gunner10
New Member
- Joined
- Sep 29, 2014
- Messages
- 9
1. How would I use the input box to store a value to a variable in a number format (such as double), but at the same time prevent the subroutine from crashing by using the variant data type for the variable? It always ends up saving as a string, and then why I try to compare the number to other numbers to check if they are greater or less than, the program doesn't work properly because the initial input was saved as a string.
2. Second, how do you prevent the error screen from popping up if the user doesn't enter a valid response into the input box? Is there any way to do this?
Thanks!
2. Second, how do you prevent the error screen from popping up if the user doesn't enter a valid response into the input box? Is there any way to do this?
Thanks!