Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Easy ASP.NET question (using VB.net)

  • 28-04-2005 02:55PM
    #1
    Registered Users, Registered Users 2 Posts: 1,384 ✭✭✭


    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,528 ✭✭✭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