Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

IsNumeric

  • Last UpdatedJul 18, 2023
  • 1 minute read

Determines if a variant can be evaluated as a number.

The required Exp argument is a variant containing a numeric expression or string expression that can be evaluated as a number.

IsNumeric returns False if Exp is a date expression.

Syntax

IsNumeric(Exp)

Exp

A valid string, number or Variant containing a value recognizable as a string or number.

Return Value

Returns a Boolean True or False.

IsDate | IsEmpty | IsNull | VarType

Example

Dim TestVar ' Declare variable.

TestVar = InputBox("Please enter a number, letter, or symbol.")

If IsNumeric(TestVar) Then ' Evaluate variable.

MsgBox "Entered data is numeric." ' Message if number.

Else

MsgBox "Entered data is not numeric." ' Message if not.

End If

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in