PRB: Syntax Error If VB CDK Custom Property Name Starts w/ NumLast reviewed: June 21, 1995Article ID: Q78399 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, version 2.0- Microsoft Visual Basic programming system for Windows, version 1.0
SYMPTOMSWhen a control property starts with a numeric value, Visual Basic generates this syntax error:
Expected: end-of-statement.However, the property works correctly in the Visual Basic design mode from the Properties bar (or window in version 2.0).
CAUSEThe Property Name (npszName) field in the PROPINFO structure for the Visual Basic Control Development Kit (CDK) cannot start with a numeric value.
RESOLUTIONThis information needs to be added to page 143 of the "Microsoft Visual Basic: Control Development Guide" shipped with Microsoft Professional Toolkit for Visual Basic 1.0 for Windows, or page 132 of the "Microsoft Visual Basic: Control Development Guide" shipped with the earlier CDK add-on for Microsoft Visual Basic.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: docerr noupd 1.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |