Visual Basic Concepts

Document Conventions

This documentation uses the following typographic conventions.

Example of convention Description
Sub, If, Case Else, Print, True, BackColor, Click, Debug, Long Words with initial letter capitalized indicate language-specific keywords.
setup Words you’re instructed to type appear in bold.
event-driven In text, italic letters can indicate defined terms, usually the first time they occur in the book. Italic formatting is also used occasionally for emphasis.
variable In syntax and text, italic letters can indicate placeholders for information you supply.
[expressionlist] In syntax, items inside square brackets are optional.
{While | Until} In syntax, braces and a vertical bar indicate a choice between two or more items. You must choose one of the items unless all of the items also are enclosed in square brackets.
Sub HelloButton_Click()
Readout.Text = _
"Hello, world!"
End Sub

This font is used for code.
ENTER Capital letters are used for the names of keys and key sequences, such as ENTER and CTRL+R.
ALT+F1 A plus sign (+) between key names indicates a combination of keys. For example, ALT+F1 means to hold down the ALT key while pressing the F1 key.
DOWN ARROW Individual direction keys are referred to by the direction of the arrow on the key top (LEFT, RIGHT, UP, or DOWN). The phrase "arrow keys" is used when describing these keys collectively.
BACKSPACE, HOME Other navigational keys are referred to by their specific names.
c:\Vb\Samples\Calldlls.vbp Paths and file names are given in mixed case.

Programming Style in This Manual

The following guidelines are used in writing programs in this manual. For more information, see Programming Fundamentals in the Programmer's Guide.