The information in this article applies to:
SUMMARY
In Visual Basic version 4.0, the exclamation mark (!) syntax is for
collection lookup, and the dot (.) syntax is for properties and methods.
MORE INFORMATIONTo obtain direct access to the Ctrl1 property on the form, type this:
This line:
translates into this code:
Visual Basic for Applications has a specific optimization for Forms that
allows the compiler to translate this syntax:
into this code:
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.
WARNING: This optimization may not occur in future versions of Visual Basic forms. Steps to Reproduce Behavior in Visual Basic 4.0
Additional query words: bang
Keywords : kbVBp400 PrgCtrls PrgOther VB4WIN vbwin |
Last Reviewed: October 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |