How to check a variable is numeric or not?

I Have two variables:-

Variable x=“122343”
variable y= “EA2”

on what condition I check whether variable x is completely numeric and variable y is not numeric.

Let me see… You want to know if your variable has only numbers. Right?

You can use IsNumeric(variable). It will return True/False if the variable has only numbers.

Regards,

7 Likes