Hi there,
Please can someone advise, I'm trying to get the sum of two variables (that as taken from a select statement in SQL). The result of the values are are in currency format i.e.£XXX.XX but for some reason i keep on being returned the same figures concated e.g £10.50£15.30 and not £25.80. The code i am using is below.
<%
Dim total
Dim one
One = strone
Dim two
two = strtwo
total = one + two %>
<P><%response.write(total)%>
Although i have noticed that when i hard code in a value, it returns the sum calculation i'm trying to acheive.
<%
Dim total
Dim one
One = strone
Dim two
two = 15.30
total = one + two %>
<P><%response.write(total)%>
Many thanks in advance, Andy
Please can someone advise, I'm trying to get the sum of two variables (that as taken from a select statement in SQL). The result of the values are are in currency format i.e.£XXX.XX but for some reason i keep on being returned the same figures concated e.g £10.50£15.30 and not £25.80. The code i am using is below.
<%
Dim total
Dim one
One = strone
Dim two
two = strtwo
total = one + two %>
<P><%response.write(total)%>
Although i have noticed that when i hard code in a value, it returns the sum calculation i'm trying to acheive.
<%
Dim total
Dim one
One = strone
Dim two
two = 15.30
total = one + two %>
<P><%response.write(total)%>
Many thanks in advance, Andy