Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Vb assignment statement
Vb assignment statement
The program code of VB language consists of statements, constants and declarations, among which the most commonly used statement is assignment statement, which can change the properties of objects and the values of variables during the running of the program.

# The syntax of assignment statement is: object attribute or variable? =? express

# For example, the width of the table is equal to 300 days, and the assignment statement is written like this.

form 1.width? =? 300' sets the width of the form to 300?

Another example is:

Temporary workers? =? Form 1.width? Assign the form width to the variable Temp.

Form 1. Title? =? "Hello!" ? Modify the title text of the form.

Temporary workers? =? Temporary workers? +20? The variable Temp is assigned its original value plus 20.