Microsoft KB Archive/130658

= PRB: "This operation not supported for Class Member Object" =

Article ID: 130658

Article Last Modified on 2/11/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q130658



SYMPTOMS
When the CLONEOBJECT method is used to duplicate a member of a class, the error "This operation not supported for Class Member Object" is displayed.



CAUSE
The object is a contained member of an instance of a visual class stored in a class library (.VCX file). Visual FoxPro does not support cloning of contained member objects. The CLONEOBJECT method is designed to copy information that is contained at the object level.



WORKAROUND
If, when designing a wizard or a builder, you plan on duplicating a control at form design time, define a class for this specific control and place an instance of this class on the form.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create a form. Select the View Class button from the Form Controls toolbar. Select Add, and add the Buttons VCX located in the SAMPLES\CONTROLS directory. Select the VCR control, and place it on the form. Select the CmdTop button in the Object dropdown. In the Command window, type:

  =ASELOBJ(acmdTop)

 acmdTop(1).Cloneobject('cmdtop2') && Generates an error </li></ol> </li></ol>
 * Places information about the selected control in the acmdtop array</li>

Additional query words: VFoxWin

Keywords: KB130658

-

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

© Microsoft Corporation. All rights reserved.