Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataView/DataSet/DataReader
Message
De
09/01/2007 00:28:26
 
 
À
09/01/2007 00:26:50
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01183234
Message ID:
01183690
Vues:
46
>Personal preference then I guess. Personally, I think this:
>
>lnMonth = CDATE(loRow("Date")).Month
>
>is much cleaner and easier to understand than this:
>
>Dim ldDate AS Date = Date.Now
>ldDate = loRow("Date")
>lnMonth = ldDate.Month
>
Well, in my case, I also have several others lines such as:
lnMonth = ldDate.Month
lnYear = ldDate.Year
So, pulling it from the row and then using it from the variable was a good approach in such circumstance.
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