|
 |
asp_databases thread: RE: One last counting-prob =)
Message #1 by "Peter Foti (PeterF)" <PeterF@S...> on Tue, 9 Apr 2002 14:02:49 -0400
|
|
I think you need to declare points as the correct data type. In this
case, a Double.
points = CDbl(rs("points")) + CDbl(0.25)
Try that.
Pete
> -----Original Message-----
> From: SD-Studios [mailto:info@s...]
> Sent: Tuesday, April 09, 2002 1:45 PM
> To: ASP Databases
> Subject: [asp_databases] One last counting-prob =)
>
>
> I want to add 0,25 points when a user does something. But it
> seems like its
> not possible to write:
>
> points = rs("points") + 0,25
>
> And this doesnt work either:
>
> points = rs("points") + 0.25
>
> But when I add 1 to the points-variable it works just fine.
> How to make this
> work? Thanks..!
> --
> Martin Johansson,
> CEO & Project Supervisor
> SD-Studios
> +46 (0)70-3003320
> http://www.sd-studios.com
>
>
>
Message #2 by "SD-Studios" <info@s...> on Tue, 9 Apr 2002 19:45:08 +0200
|
|
I want to add 0,25 points when a user does something. But it seems like its
not possible to write:
points = rs("points") + 0,25
And this doesnt work either:
points = rs("points") + 0.25
But when I add 1 to the points-variable it works just fine. How to make this
work? Thanks..!
--
Martin Johansson,
CEO & Project Supervisor
SD-Studios
+46 (0)70-3003320
http://www.sd-studios.com
|
|
 |