Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CInt produces an overflow
Message
De
08/03/2001 03:25:05
 
 
À
08/03/2001 01:06:47
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00483011
Message ID:
00483043
Vues:
31
>Hi, everybody.
>
>I have a page with the following item form...
>
>input type=text name=txtAposta maxlength=6 size=6 value=0
>
>In another page, I have the following script:
>
>liPontosAposta = CInt(Request("txtAposta"))
>
>If a type 5000 in this textbox, everything works fine; but if I type 50000, it generates the following error:
>
>
>Erro de tempo de execução do Microsoft VBScript error '800a0006'
>Sobrecarga: 'CInt'
>/quizmail/lanceaposta.asp, line 10
>
>I think in English is:
>
>Microsoft VScript's runtime error '800a0006'
>Overflow: 'CInt'
>/quizmail/lanceaposta.asp, line 10
>
>the line 10 is
>liPontosAposta = CInt(Request("txtAposta"))
>
>Does anybody knows why this is happening?
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform