Re: MS VB Newbie Tutorial



Hi Cor,

Thanks for your response.

I am using VB .NET 2003.

Is there something different in this old version that must be causing
the problem?

Peter.

Cor Ligthert [MVP] wrote:
Peter,

Are you using VBNet 2005?

This is new for that

Cor

"Peter" <petethegaijin@xxxxxxxxx> schreef in bericht
news:1155095155.811338.119290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I am trying to complete the tutorial on:
http://msdn.microsoft.com/vbasic/learning/newtodevelopment/choose/

I am up to this step:
# In the Form1_Load event handler, type the following code.

If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Saturday Or _
My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Sunday Then
MsgBox("Happy Weekend!")
End If

# Press F5 to run your program.

However when I press F5, I get 2 build errors saying:
"Name 'My' is not declared."

How do I declare 'My'?

Can someone help me complete this tutorial?

Many thanks,

Peter.


.



Relevant Pages

  • Re: MS VB Newbie Tutorial
    ... Cor Ligthert [MVP] wrote: ... # In the Form1_Load event handler, ... How do I declare 'My'? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: CPtrList with CSocket
    ... This means you don't need to declare ... Generally, you should avoid the ancient and, frankly, poorly-done, classes like CPtrList, ... By using two iteration mechanisms, one of which is inherently unrelated to the structure ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Getting rid of "declare -x" statements at Terminal login
    ... to get a functioning Meta key for Emacs, ... now causing me to get lots of "declare -x" variable statements every ...
    (comp.sys.mac.system)
  • Re: Web Hosting Disaster
    ... the front entrance, endangering many and causing $10,000s of dollars ... in damage. ... I would declare to them that they were violating my ...
    (misc.transport.road)
  • Re: The variable name has already been declared error - SQL parameter insert
    ... So, Declare it like this: ... Marina Levit [MVP] wrote: ... Dim Sql, strDN, strError, strNick, strName, sqlGet As String ... Dim rowsaffected As Integer ...
    (microsoft.public.dotnet.framework.adonet)

Quantcast