IsNumeric Function

Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False.

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


IsNumeric (Var)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Boolean

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

Expression: āļ”āļļāļ§ āˇ„āˇāļģāˇ€āˇ“āļ¸āļ§ āļ…āˇ€āˇāˇŠâ€āļēāļē āļ•āļąāˇ‘āļ¸ āļ­āļąāˇŠāļ­āˇ”āļ¸āļē āˇ„āˇ āˇƒāļ‚āļ›āˇŠâ€āļēāˇāļ­āˇŠāļ¸āļš āļ´āˇŠâ€āļģāļšāˇāˇāļąāļēāļšāˇŠ.

Error codes:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub ExampleIsNumeric
Dim vVar As Variant
    vVar = "ABC"
    Print IsNumeric(vVar) ' False
    vVar = "123"
    Print IsNumeric(vVar) ' True
End Sub

Please support us!