Guaranteed Hits to your web site!












Learn Visual Basic 6.0


2. The Visual Basic Language


Visual Basic Statements and Expressions

  1. 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:
    The assignment statement stores information.

  2. Statements normally take up a single line with no terminator. Statements can be stacked by using a colon (:) to separate them. Example:
    (Be careful stacking statements, especially with If/End If structures. You may not get the response you desire.)

  3. If a statement is very long, it may be continued to the next line using the continuation character, an underscore (_). Example:
  4. Comment statements begin with the keyword Rem or a single quote ('). For example:
    You, as a programmer, should decide how much to comment your code. Consider such factors as reuse, your audience, and the legacy of your code.


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1