Format String

10/07/2006 - 09:43 por Fadoyo | Informe spam
Hola a todos, como podria convertir un integer en string con este formato:

001
002
003
004
005
006
007
008
009
010
011
...

Gracias Fadoyo

Preguntas similare

Leer las respuestas

#1 Alberto Poblacion
10/07/2006 - 09:52 | Informe spam
"Fadoyo" wrote in message
news:OvJh%23S$
Mostrar la cita
resultado=string.Format("{0:000}", numero)
#2 Patxi Sanz
10/07/2006 - 12:17 | Informe spam
Hola Fadoyo:

Otra solución:

Dim entero As Integer = 1
Dim texto As String

texto = entero.ToString("000")

Un saludo,


Patxi Sanz
patxisanz[ARROBA]yahoo[PUNTO]es
Tudela (NA)
Ads by Google
Search Busqueda sugerida