Assignment Operators

You can use operators shown in the previous paragraph for incremental operations. Consider the following code:

image

You can therefore abbreviate your code using this particular form when performing operations or concatenations. Also notice that += assignment operator works on strings as well.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.