Check if a string variable has an integer value
问题 I am working on a project which allows kids to send a message to Santa. Unfortunately, if they enter a string instead of an integer in the AGE field, the program crashes and returns Conversion from string "[exampleString]" to type 'Double' is not valid. Is there any way to check if they have entered an integer or not? This is the code. If childAge > 0 And childAge < 150 Then fmSecA2 = "Wow! You are already " & childAge & " years old? You're growing to be a big " & childGender & " now! " Else