JoeP
02-16-2003, 03:38 AM
I searched the forum and found this:
Since all variables in ASP are actually of the type "Variant", you shouldn't have to "convert" it to numeric before performing a mathematical operation on it if it is indeed numeric (and I presume you set the cookie!). What are you trying to do, and what kind of information does the cookie contain?
P.S.
CInt(variable) = integer
CDbl(variable) = Double
and there's plenty more datatypes, look on MSDN
But I am having trouble converting a passed timer string where:
Elapsedtime= 'request.form("ElapsedTime")
Elapsedtime is in the string format: '2:32' or 2 Min 32 Secs.
I want to parse and get the mod of 232/60 so I can convert to a message of " Your Time Was: 2 Min and 32 Secs"
Any suggestions, tips or direction will be appreciated.
TIA
JoeP
Since all variables in ASP are actually of the type "Variant", you shouldn't have to "convert" it to numeric before performing a mathematical operation on it if it is indeed numeric (and I presume you set the cookie!). What are you trying to do, and what kind of information does the cookie contain?
P.S.
CInt(variable) = integer
CDbl(variable) = Double
and there's plenty more datatypes, look on MSDN
But I am having trouble converting a passed timer string where:
Elapsedtime= 'request.form("ElapsedTime")
Elapsedtime is in the string format: '2:32' or 2 Min 32 Secs.
I want to parse and get the mod of 232/60 so I can convert to a message of " Your Time Was: 2 Min and 32 Secs"
Any suggestions, tips or direction will be appreciated.
TIA
JoeP