Datasheet

Also notice that comments before a subroutine are not collapsed with the subroutine. You can make
reading collapsed code easier by placing a short descriptive comment before each routine.
Tooltips
If you hover the mouse over a variable at design time, the editor displays a tooltip describing the vari-
able. For example, if you hover over an integer variable named
num_actions, the tooltip would display
“Dim num_actions As Integer.”
If you hover over a subroutine or function call, the tooltip displays information about that method. For
example, if you hover over the
RandomizeArray subroutine (which takes an array of integers as a
parameter), the tooltip says, “Private Sub RandomizeArray(arr() As Integer).”
At run time, if you hover over a variable, the tooltip displays the variable’s value. If the variable is com-
plex (such as an array or structure), the tooltip displays the variable’s name and a plus sign. If you click
or hover over the plus sign, the tooltip expands to show the variable’s members.
In Figure 1-56, the mouse hovered over variable
arr. The editor displayed a plus sign and the text arr
{Length = 100}
. When the mouse hovered over the plus sign, the editor displayed the values shown in
the figure. Moving the mouse over the up and down arrows at the top and bottom of the list makes the
values scroll.
Figure 1-56: You can hover the mouse over a variable at run time to see its value.
56
Chapter 1
571982 ch01_2.qxd 1/19/06 1:16 PM Page 56