Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert a value to numeric?
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00392901
Message ID:
00392973
Vues:
9
Use the CInt() function to typecast the variables. Something like this:

a = 10
b = 10
c = CInt(a) + CInt(b)

HTH

>I must sum 2 values in asp.
>maybe if
>a = 10
>b = 20
>When i Write a + b it returns 1020
>I want that its returns 30
>thanks
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform