come posso settare un valore in 2 cifre?
es
1 = 01
...
12=12
come posso settare un valore in 2 cifre?
es
1 = 01
...
12=12
Robycodice:numero = 1 new_numero = right("00"& numero,2)
www.creamweb.it [v. 3.0]
:: Script ASP!
:: Web directory gratuita!
:: Campioni del mondo!
e se volessi trasformare questo in un ciclo?
codice:if gg = "1" then gg = "01" end if if gg = "2" then gg = "02" end if if gg = "3" then gg = "03" end if if gg = "4" then gg = "04" end if if gg = "5" then gg = "05" end if if gg = "6" then gg = "06" end if if gg = "7" then gg = "07" end if if gg = "8" then gg = "08" end if if gg = "9" then gg = "09" end if
Robycodice:if gg < 10 then gg = right("00"& gg,2)
www.creamweb.it [v. 3.0]
:: Script ASP!
:: Web directory gratuita!
:: Campioni del mondo!
grazie, si risparmia parecchio codice