Assigning Values to Variables and Properties

As you start to isolate the possible cause of an error, you may want to test the effects of particular data values. In break mode, you can set values with statements like these in the Immediate window:

BackColor = 255
VScroll1.Value = 100
MaxRows = 50

The first statement alters a property of the currently active form, the second alters a property of VScroll1, and the third assigns a value to a variable.

After you set the values of one or more properties and variables, you can continue execution to see the results. Or you can test the effect on procedures, as described in the next topic, "Testing Procedures with the Immediate Window."