Article ID: 129287
Article Last Modified on 12/9/2003
Form1.Ctrl1.Text = "Hello"This line:
Form1!Ctrl1.Text = "Hello"translates into this code:
Form1.Controls.Item("Ctrl1").Text = "Hello"
Visual Basic for Applications has a specific optimization for Forms that
allows the compiler to translate this syntax:
Form1!Ctrl1.Text = "Hello"into this code:
Form1.Ctrl1.Text = "Hello"Therefore the performance of the two statements should be identical. Note that this optimization is specific to controls on Visual Basic version 4.0 forms. It will not work with any other collection.
Form1!Command1.Caption = "Test"
Form1.Command1.Caption = "It Works!"
Additional query words: bang
Keywords: kbinfo KB129287