Nah - you just need to learn to code.
But anyway:
<% DIM total, tav, tdd tav= strdegday tdd= calcHotWaterFactor(strdegday)) total= clng(tdd) + clng(tav)
response.write(total) %>
Should work. Probably. It's untested.
Your the man !
4.5 | 3 | 7
How does it not do the .5 though? Feel free to tell me to f*ck off
That's a few pint's I'll be due you
Meh - I've forgotten my VB - it's not CLng you need, it's CDbl. One converts to a long integer, the other to a double-precision floating point number.
So, in that last snippet, replace Clng with CDbl everywhere it appears.
Thanks Kenny, your help was much appreciated earlier.
Will try that Fri as Off up North to Wick and Elgin tomorrow so cant try till Friday.
Many Thanks Kev
Thanks again Kenny that works.
Thanks much appreciated.