martes, 24 de septiembre de 2019

validar si un string es número

Dim n As Integer
Dim numero As Boolean = Integer.TryParse("123", n)


Public Function get_validar_numero(ByVal val As String) As Boolean
        Dim n As Integer
        Return Integer.TryParse(val, n)
    End Function

No hay comentarios.:

Publicar un comentario