how can i check if an value is integer or string?

  • Thread starter Thread starter h3llz
  • Start date Start date
hi,
how can i check if an value is integer or string?

Public Function IsInteger(AValue As Variant) As Boolean

On Local Error GoTo LocalError

Dim dummy As Integer

Dummy = CInt(AValue)
IsInteger = True

Exit Function

LocalError:
IsInteger = False

End Function




mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top