03-01-2016
02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-01-2016
02:39 PM
Hi LonesomeJoe,
You can use IsNumeric for this.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Here's an iLogic example.
oInput = InputBox("Enter a number", "iLogic", "")
numericCheck = IsNumeric(oInput)
If numericCheck = True Then
MessageBox.Show("Input is numeric", "iLogic")
Else
MessageBox.Show("Input is NOT numeric.", "iLogic")
End If
VBA example:
Public Sub NumericCheck()
oInput = InputBox("Enter a number", "iLogic", "")
Dim NumericCheck As Boolean
NumericCheck = IsNumeric(oInput)
If NumericCheck = True Then
MsgBox ("Input is numeric")
Else
MsgBox ("Input is NOT numeric.")
End If
End Sub