473,509 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why am I getting squiggly blue?

On .Friday and .Saturady and .Sunday in thie followign if statement
(The code is form deitel book; I am writing the same code on my own)

if ( dropOffDate.DayOfWeek == DayOfWeek.Friday ||
dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek ==
DayOfWeek.Sunday)

Nov 2 '06 #1
3 1331
Ensure you have:

using System;

At the top. The DayOfWeek enum is in the System namespace. You could
also just add the word System. infront of DayOfWeek.

Kelly S. Elias
Webmaster
DevDistrict - C# Code Library
http://devdistrict.com

Amanda wrote:
On .Friday and .Saturady and .Sunday in thie followign if statement
(The code is form deitel book; I am writing the same code on my own)

if ( dropOffDate.DayOfWeek == DayOfWeek.Friday ||
dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek ==
DayOfWeek.Sunday)
Nov 2 '06 #2
If dropOffDate is defined as DateTime it compiles correctly on my system, no
squigly anything.

Regards,
John

"Amanda" <am**********@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
On .Friday and .Saturady and .Sunday in thie followign if statement
(The code is form deitel book; I am writing the same code on my own)

if ( dropOffDate.DayOfWeek == DayOfWeek.Friday ||
dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek ==
DayOfWeek.Sunday)

Nov 2 '06 #3

John J. Hughes II wrote:
If dropOffDate is defined as DateTime it compiles correctly on my system, no
squigly anything.

Regards,
John

"Amanda" <am**********@yahoo.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
On .Friday and .Saturady and .Sunday in thie followign if statement
(The code is form deitel book; I am writing the same code on my own)

if ( dropOffDate.DayOfWeek == DayOfWeek.Friday ||
dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek ==
DayOfWeek.Sunday)
Yes it's declared DateTime.

Nov 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2483
by: Wm | last post by:
I'm totally clueless on this one -- I'm getting 3 copies of every Email (in plain text, not HTML as expected), from a single mail() line... Can anyone tell me what might be causing the duplicates??...
2
6888
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
3
3571
by: J | last post by:
Can anyone tell me how to turn off the feature that creates the blue squiggly line under code that has errors? Is that feature called background compile? I am working on a huge project, and it...
5
1883
by: Francis Bell | last post by:
I just found that my fin stream is not getting passed to my readInASpinnerbait function. Here's what I have: string readInFirstChars(ifstream &fin) { char first; string print; while...
1
3411
by: VB Programmer | last post by:
I can use response.write in any one of my webforms. But when I try to use it in a Module's public sub there is a squiggly blue line under response. Hovering over it says 'Name response is not...
5
1418
by: Brian Henry | last post by:
I have a page which reads an article from the database it has 1 text box, 2 dropdown lists, and a longreat HTML text box. I load the information from the database when the page is set to edit mode...
8
9987
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
13
10088
by: dbuchanan | last post by:
Hello, Here is the error message; ---------------------------- Exception Message: ForeignKeyConstraint Lkp_tbl040Cmpt_lkp302SensorType requires the child key values (5) to exist in the...
4
2569
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, <asp:DropDownList id="DropDownList1" runat="server" onchange="Test();"> can someone please tell me why the onchange has a squiggly and if there is a better way to access the...
1
1998
by: Cirene | last post by:
I'm binding a datagrid to my business object. I get an error that the type 'abcshoppingcart'...is not marked as serializable. So, I added a attribute in the class. But then a blue squiggly...
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5652
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3216
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.