Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of declaration
Message
De
06/08/2006 23:08:27
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
06/08/2006 16:09:19
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01143264
Message ID:
01143345
Vues:
9
Well, you can code how you like, but the ms guidelines and the guidelines of most orgs like sharp develop etc, all say hungarian is out. Yet you use that... why worry what's right and what's wrong.... code as you see fit; however, if you are planning on bringing in others to help or farming out your work, then you might want to look at the current standards and try to follow them.



>>It's not that it's *wrong*, meaning it won't work ... but since it's not necessary to do, then it's simply redundant and I doubt if it makes it any clearer to the developer as to what is going on.
>
>Ok, let's try this code:
>
>
>        Public lLogin As Boolean = False
>        Public lSave As Boolean = True
>        Public nErrorValidation As Integer = 0
>        Public nPrimaryKey As Integer = 0
>        Public nSQLMode As Integer = 1
>        Public oApp As Framework.App = New Framework.App
>        Public oDataProvider As Framework.Data = New Framework.Data(oApp)
>        Public oDropDownCondition As Collection = New Collection
>
>
>To me, it is much easier to understand the declarations when everything is declared the same way.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform