TimeSpan issue

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

I was just getting started with TimeSpan and I get a error in my first line
of code...

I write...

Dim ts as TimeSpan

And Intellisense gives me an error "Type Expected"

I did notice that there were 2 TimeSpan choices in the Intellisense drop
down while creating the code...

One with {} curly braces in front and one with 3 colored boxes in front.

I am guessing that is my problem. Why are there 2 types both with the same
name "TimeSpan" ?

Also, where is a legend to the icons for the Intellisense items ?

Thanks !
 
I think I just figured it out.... I had named my Project "TimeSpan".... I
guess that is not allowed ??
 
I think I just figured it out.... I had named my Project "TimeSpan".... I
guess that is not allowed ??

The one with {} indicate a namespace (not a project, also if by default them
have the same name).
It is allowed but the compiler may not understand which you want to use, so,
if you want to mantain your name you can specify the whole name:
System.TimeSpan.
 
Back
Top