> any idea what causes this error??
> Month is a function, currently used in applications,......
Maybe if you actually post some code that shows how you are getting the
error, someone could help.
Either there's a difference in how "Month" is defined in the context in
which you're getting the error, or you have a syntax error in which you're
using the identifier "Month". But it's not possible to be any more
specific than that without some concrete example of what you're talking
about.
Pete
You ahve something like this:
int month = DateTime.New.Month();
You should have
int month = DateTime.New.Month;

Signature
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
************************************************
Think outside the box!
************************************************
> Hi All,
>
> any idea what causes this error??
> Month is a function, currently used in applications,......
>
> fyi, I'm using Vista bussines + VS2005 pro
Luc - 17 Jul 2007 07:08 GMT
Dear,
please find the small code snippet which causes the error,......
Dim x As Integer
x = Month(Now)
thanks for your quick response!

Signature
Best regards
Luc
> You ahve something like this:
>
[quoted text clipped - 10 lines]
> >
> > fyi, I'm using Vista bussines + VS2005 pro
Nathan Baulch - 17 Jul 2007 12:08 GMT
> x = Month(Now)
Should be:
x = DateTime.Now.Month
Nato
Luc - 18 Jul 2007 07:30 GMT
Thanks!!

Signature
Best regards
Luc
> > x = Month(Now)
>
> Should be:
> x = DateTime.Now.Month
>
> Nato
Cowboy (Gregory A. Beamer) - 18 Jul 2007 19:14 GMT
Dim x as Integer = DateTime.Now.Month

Signature
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
************************************************
Think outside the box!
************************************************
> Dear,
> please find the small code snippet which causes the error,......
[quoted text clipped - 18 lines]
>> >
>> > fyi, I'm using Vista bussines + VS2005 pro