What's the .net framework equivalent of the vb function isnumeric?
If there isn't one, how can I test a string variable to see if its a
number or not? I don't want to use isnumeric if possible
If you're writing in Visual Basic, there are just some things you
can't avoid coding in a Visual Basic way. IsNumeric, vbTab, Redim
Preserve; the list goes on.
if you're really set on it, though, your "non-VB" alternative would be
something like:
Try
' substitute Type as required
[Integer].Parse( "value" )
' Yes, it's an Integer
Catch System.FormatException
' No, it's not
End Try
More efficient? Doubt it.
Easier to read? Nope.
Progress? I'll let you make up your own mind.
HTH,
Phill W.