Hola a todos.
Ho questo codice:
codice:
'**********************************
'ORE STRAORDINARIO
strORESTRAORDINARIO = formatnumber(Rs("strORESTRAORDINARIO"),2)
lngStartPos = 1
strSearchFor = ","
lngFoundPos = InStr(lngStartPos,strORESTRAORDINARIO,strSearchFor)
Do While lngFoundPos > 0
lngStartPos = lngFoundPos + 1
lngFoundPos = InStr(lngStartPos,strORESTRAORDINARIO,strSearchFor)
strORESTRAORDINARIO_Min1 = replace(strORESTRAORDINARIO, ",", "")
ore = strORESTRAORDINARIO_Min1 \ 60
min = strORESTRAORDINARIO_Min1 mod 60
strORESTRAORDINARIO_2 = ore &","& min
response.write strORESTRAORDINARIO_2
Loop
'**********************************
Mi viene restituito valore 7,00 in strORESTRAORDINARIO_2, mentre nella tabella del db i valori sono:
1,45 + 1,45 + 1,30 = 5
Che sbaglio?