Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Easy ASP.NET question (using VB.net)

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


    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