Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Easy ASP.NET question (using VB.net)

Options
  • 28-04-2005 2:55pm
    #1
    Registered Users Posts: 1,341 ✭✭✭


    I'm starting to learn asp.net using VB.net and I have a quick question, have a look at the following code:

    dim MyDate as DateTime = DateTime.Now
    OurLabel.Text = "MyDate: " + MyDate + "<BR><BR>"

    OurLabel.Text += "<B><U>Date Properties:</U></B><BR>"


    This is from a book I'm reading, I understand 99% of it, but my question is what does the += mean ('more than equals'??).


    Any help is appreciated.

    Thanks.


Comments

  • Registered Users Posts: 1,523 ✭✭✭machalla


    Off the top of my head its a shortcut for saying

    OurLabel.Text = OurLabel.Text + "<B><U>Date Properties:</U></B><BR>"

    Its the same as saying

    i = i + 1

    except you use

    i += 1


Advertisement