In Visual Basic, "=" is the assignment operator. It means that the expression on the right hand side is evaluated, and the result is stored in the variable on the left hand side. So in the statement x=x+1, the expression x+1 is evaluated (using the current value of x), and the result is stored back in x (thus changing the value of x).
In algebra, "=" means that the two sides of the equation must be equal. There isn't any notion of changing the value of a variable as you go. So in algebra, x=x+1 is just an unsatisfiable equation.
Dim x As Integer x = 10 x = 3+x*4 x = x-142
Dim y As Integer y = 10 If y>5 Then If y>10 Then y = 20 Else y = 5 End if Else y = 0 End if5
Dim x As Integer Private Sub squid () x = 0 Call clam Call clam End sub Private Sub clam x = x+3 End sub6
The timer control is used to call a procedure every second that updates the displayed time.