Microsoft KB Archive/191323

= BUG: "Member OPTION3 Is a Class Member" Error =

Article ID: 191323

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q191323



SYMPTOMS
If you associate a field from a table to an OptionGroup class in the Database Designer, and the ButtonCount property of the OptionGroup class is greater than two (2), after you add that table to a form's DataEnvironment, dragging and dropping that field onto a form causes the following error to occur:

Member OPTIONx is a class member.

NOTE: "x" is the value of the ButtonCount property.



RESOLUTION
Add the class from the Form Controls Toolbar or drag and drop the class from the Project Manager and set up the ControlSource property manually instead of using Intellidrop.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
  Create an OptionGroup class with the following code: CREATE CLASS opt1 OF myopt1 AS OptionGroup  In the Class Designer, set the ButtonCount property of the OptionGroup class to 3. Save the class.  Create a .prg file and type in the following code: CLOSE ALL SET SAFETY OFF CREATE DATABASE testdata CREATE TABLE test (field1 N(1)) DBSETPROP('test.field1', 'field', 'DisplayClassLibrary', 'myopt1.vcx') DBSETPROP('test.field1', 'field', 'DisplayClass', 'opt1') CREATE FORM myform NOWAIT KEYBOARD "{ALT+V}"+"{E}"       && In Visual FoxPro 6.0, KEYBOARD "{ALT+A}"+"{ALT+C}"   && use this line of code. && However, in Visual FoxPro 5.0, && KEYBOARD "{Tab}"+"{Enter}"+"{Tab}"+"{Enter}" && uncomment this line && and comment the && preceding lines of                                                    && code. SET SAFETY ON  Save the preceding as a .prg file and run the program. When the Form Designer and DataEnvironment display, drag and drop field1 from the table onto the form.</li></ol>

NOTE: The error occurs. If you ignore the error, the class will still be added to the form, but the ControlSource of the OptionGroup class is not set.

Additional query words: kbVFp600bug kbDesigner kbVFp500 kbVFp500a

Keywords: kbbug kbpending kbcode KB191323

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.