ciao!
ho delle variabili che contengono i nomi dei 12 mesi ..
Devo sostituire al nome il numero ..
facendo così
if m = "March" then
nmese = "3"
end if
non va .. la variabile "nmese" risulta vuota ..
come posso fare??
ciao!
ho delle variabili che contengono i nomi dei 12 mesi ..
Devo sostituire al nome il numero ..
facendo così
if m = "March" then
nmese = "3"
end if
non va .. la variabile "nmese" risulta vuota ..
come posso fare??
........\ | /......
......(@ @)).....
-oOO-(_)-OOo-
......Angie.....
Sicuro che "m" sia valorizzato?
Provare paura per un qualcosa che ti possa capitare nel futuro non ti evita quell'evento,ti fa soltanto vivere un presente sbagliato!
yes
........\ | /......
......(@ @)).....
-oOO-(_)-OOo-
......Angie.....
Posta un po' più di codice.
Provare paura per un qualcosa che ti possa capitare nel futuro non ti evita quell'evento,ti fa soltanto vivere un presente sbagliato!
Response.Write m
Response.Flush
if m = "March" then
nmese = "3"
end if
cosi' puoi controllare
ho già fatto il response.write(m) e la variabile risulta piena...
cos'è response.flush ?
........\ | /......
......(@ @)).....
-oOO-(_)-OOo-
......Angie.....
A questo punto serve vedere un po' più di codice!
Provare paura per un qualcosa che ti possa capitare nel futuro non ti evita quell'evento,ti fa soltanto vivere un presente sbagliato!
reg = rs("data")
g = left(reg,2)
a = right(reg,4)
ndata = len(reg)
ma = ndata - 6
m = mid(reg,3,ma)
if m = "January" then
reg1 = g&"/01/"&a
end if
if m = "February" then
reg1 = g&"/02/"&a
end if
if m = "March" then
reg1 = g&"/03/"&a
end if
if m = "April" then
reg1 = g&"/04/"&a
end if
if m = "May" then
reg1 = g&"/05/"&a
end if
if m = "June" then
reg1 = g&"/06/"&a
end if
if m = "July" then
reg1 = g&"/07/"&a
end if
if m = "August" then
reg1 = g&"/08/"&a
end if
if m = "September" then
reg1 = g&"/09/"&a
end if
if m = "October" then
reg1 = g&"/10/"&a
end if
if m = "November" then
reg1 = g&"/11/"&a
end if
if m = "December" then
reg1 = g&"/12/"&a
end if
........\ | /......
......(@ @)).....
-oOO-(_)-OOo-
......Angie.....
io farei
.... tutto uguale
m=UCASE(mid(reg,3,ma))
SELECT CASE m
CASE "JANUARY": MN="01"
CASE "FEBRUARY": MN="02"
ecc. fino a DECEMBER
END SELECT
reg1 = g & "/" & MN "/" & a
ho risolto con il TRIM
if trim(m) = "September" then
reg1 = g&"/09/"&a
end if
![]()
grazie![]()
........\ | /......
......(@ @)).....
-oOO-(_)-OOo-
......Angie.....