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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Easy ASP.NET question (using VB.net)

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


    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, Registered Users 2 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