Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of DayOfWeek
Message
De
05/05/2014 10:55:51
 
 
À
05/05/2014 10:50:35
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599536
Message ID:
01599550
Vues:
33
>I think your first statement is not comparing it to anything, so essentially it's looking to see if System.DayOfWeek.Sunday == true, which it is not, so it will always be false.
>
>Your second code sample should work properly.

Thanks

I think the designer should not have allowed it as this is an integer and it accepts a boolean syntax as is.
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