Visual Basic has a function IsNumeric.
It returns True if the argument is a number, false if not.
in VB code it would look like this:
What I'm looking for is a similar function in C#
Thanks,
Bill
It returns True if the argument is a number, false if not.
in VB code it would look like this:
Code:
Dim txt as string = me.Textbox1.Text
if IsNumeric(txt)
MsgBox("Its a number.");
else
MsgBox("Its not a number.");
end if
Thanks,
Bill
Comment