Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method overload requires Public declaration
Message
De
08/05/2011 10:51:14
 
 
À
08/05/2011 02:59:17
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:
01509881
Message ID:
01510010
Vues:
46
>Because Decimal will implicity widen to Double. You won't lose information but might lose precision. If I worked with VB.NET the first thing I'd do would be to set OPTION STRICT ON. It still allows all the implicit widening conversions but will catch a lot more potential problems at compile time

When doing that, I obtain over 102 errors. Those are all with loRow() lines such as:
        ' Scan all records
        For lnCounter = 0 To loDataProvider.nCount - 1
            loRow = loDataProvider.oRows(lnCounter)

            ' If we have a shop
            If loRow("NoMember") > 0 Then
This is valid code. Why is the compiler complaining now with strict on?
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