Tema
:
Validando integer
Ver Mensaje Individual
#
2
(
permalink
)
18/09/2004, 07:22
Saruman
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años
Puntos: 5
con isnumeric es mejor...
Código:
if isnumeric(numero) = false then numero = 0
asi cuando viene en blanco o en otro formato simplemente le pones cero para cuando lo vas a agregar a la bd no te mande error.
__________________
Saruman
One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.
Saruman
Ver Perfil
¡Visita mi Sitio!
Buscar todos los Mensajes de Saruman