VB 6 1
VB 6 1
VB 6 1
Statements and
Expressions
The simplest statement is the assignment statement. It consists of a
variable name, followed by the assignment operator (=), followed by
some sort of expression
Examples:
StartTime = Now
Explorer.Caption = "Captain Spaulding"
BitCount = ByteCount * 8
Energy = Mass * LIGHTSPEED ^ 2
NetWorth = Assets – Liabilities
The assignment statement stores information.
Statements normally take up a single line with no terminator.
Statements can be stacked by using a colon (:) to separate them.
Example:
StartTime = Now : EndTime = StartTime + 10