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)

ආපසු ලබාදෙන අගය:

Bool

පරාමිතීන්:

Expression: ඔබට හැරවීමට අවශ්‍යය ඕනෑම තන්තුමය හෝ සංඛ්‍යාත්මක ප්‍රකාශනයක්.

Error codes:

5 Invalid procedure call

උදාහරණය:

Sub ExampleIsNumeric

Dim vVar As Variant

    vVar = "ABC"

    print IsDate(sDateVar) REM Returns False

    vVar = "123"

    print IsDate(sDateVar) REM Returns False

End Sub