Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usage of DayOfWeek
Message
From
05/05/2014 12:15:27
 
 
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:
01599566
Views:
44
>Won't compile in C# - 'Cannot implicitly convert type 'System.DayOfWeek' to bool.
>
>Guess you don't have 'Option Strict On' ?
>
>Without it it will compile but not evaluate to either true or false.

Bingo, that was it.

Thanks for mentioning it.
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
Reply
Map
View

Click here to load this message in the networking platform