Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of moving from Double to Integer
Message
De
08/02/2012 15:25:20
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01534895
Message ID:
01534900
Vues:
44
>I suggest to use TryParse. See
>
>http://www.dreamincode.net/forums/blog/1693/entry-3714-got-the-net-casting-blues-tryparse-is-here-to-save-the-day/

Ok, this is good to know.

But, in my case, all the validation is already done that the value of the variable declared Double is one that fits for a value in the variable Integer. So, as is, the result would then be the same as using the TryParse as I did basically the same thing in the code prior to that line.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform