This is probably a stupid question but it is bothering me.
I am retrieving an equation from a database, the datatype of the column is varchar.
tmpEq = ((A + E) * 3.141) + C
The equation is then stored in a variable. I then replace the alpha characters with the corresponding numeric values (retrieved from another database table) the variable would then look like this;
tmpEq = ((cint(10) + cint(10)) * 3.141) + cint(10)
The problem is when I write the tmpEq variable <%=tmpEq%> it writes the string instead of the result of the calculation.
Like I said this is probably a dumb question, but any help would be great.
(Oh this is classic asp and not .net)