then how do I do this??

marlon ng replied at 07-Mar-06 02:34
from the book i'm reading:

"If you expect the user to enter an integer, you can test with VarType() to see if the argument is a valid integer."

So how do I test the user's entry with VarType? i need a complete but simple sample code which I can actually use in an application. How do I test with VarType to see if the user's entry is a valid integer?.....I know i can use other functions like IsDate, IsNumeric, etc. but I also want to know how to use VarType. Thanks!


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  VarType Function - marlon ng  05-Mar-06 10:36 10:36:34 AM
      Use IsDate instead - vbnov *  05-Mar-06 06:45 6:45:13 PM
      Correct Date and the label will turn red - John Conway  05-Mar-06 09:01 9:01:15 PM
      Try this Way - CHANDU V  05-Mar-06 11:54 11:54:04 PM
          VarType Function, nothing else please, thank you! - marlon ng  07-Mar-06 12:24 12:24:22 AM
              If you insist - vbnov *  07-Mar-06 12:59 12:59:28 AM
                  thanks! you programming guru you - marlon ng  07-Mar-06 01:17 1:17:37 AM
                  then how do I do this?? - marlon ng  07-Mar-06 02:34 2:34:26 AM
                      Useful in a procedure - vbnov *  07-Mar-06 04:35 4:35:39 AM
                          on your sample code - marlon ng  07-Mar-06 10:33 10:33:44 AM
                              It's clear that it is a variable - vbnov *  07-Mar-06 06:56 6:56:39 PM
View Posts