PRB: Class Names in VFP 5.0 are Case SensitiveLast reviewed: December 20, 1996Article ID: Q161359 |
The information in this article applies to:
SYMPTOMSWhen referencing an object class or base class for comparison, the class name is case sensitive. When testing the class property of a command button and comparing the property setting to the string "commandbutton" rather than "Commandbutton," the code fails. The 'c' in Commandbutton must be capitalized.
RESOLUTIONThe text used for comparison must match the property setting exactly.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
Replace:
IF ThisForm.Controls(i).Class = "commandbutton" THENWith:
IF ThisForm.Controls(i).Class = "Commandbutton" THEN |
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |