Microsoft KB Archive/141678

= FIX: Changes Made to a Sub-Classed CommandGroup are not Saved =

Article ID: 141678

Article Last Modified on 3/24/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q141678



SYMPTOMS
When a sub-classed CommandGroup is added to a form, changes to the Caption Property of a button in the CommandGroup are not saved when the form is saved. This problem only occurs if you modified the Name property of the button in the sub-classed CommandGroup before adding the sub-class to the form.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.



Steps to Reproduce Problem
  In the Command window, type the following command: CREATE CLASS cmg OF test AS CommandGroup  Save and Close the Class.  In the Command window, type the following command: CREATE CLASS cmg2 OF test AS cmg FROM test.  Change the ButtonCount property to 3. Change the Name and Caption properties of COMMAND3 to ADDED. Save and Close the class.</li>  In the Command window, issue this command: CREATE CLASS frm OF test as form </li> Add the Subclass cmg2 to the form.</li> Change the ButtonCount property to 4.</li> Change the Caption of the last button (Command3) to Testing.</li> Save and Close the class.</li> Modify class frm of test. Notice that the Caption has reverted back to Command3.</li></ol>

Additional query words: VFoxWin buglist3.00 fixlist3.00b

Keywords: kbbug kbfix KB141678

-

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

© Microsoft Corporation. All rights reserved.