Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usage of DayOfWeek
Message
From
05/05/2014 10:55:51
 
 
To
05/05/2014 10:50:35
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01599536
Message ID:
01599550
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform