Microsoft KB Archive/221735

= FIX: Reference to ActiveForm does not Allow Access to all Properties =

Article ID: 221735

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221735



SYMPTOMS
Storing and referencing the ActiveForm property of the _VFP object as a variable prevents access to other properties of the object. For example, accessing the Objects.Count property of _VFP.ActiveForms causes the following error:

Unknown member OBJECTS.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
  Create a program that contains the following code: PUBLIC ox  ox = CREATE('form') ox.ADDOBJECT('txt1', 'textbox') ox.ADDOBJECT('txt2', 'textbox') ox.txt1.VISIBLE = .T.  ox.txt2.VISIBLE = .T.   ox.SHOW ?_VFP.ACTIVEFORM.OBJECTS.COUNT oy=_VFP.ACTIVEFORM ?oy.OBJECTS.COUNT  Run the program.

The error mentioned in the SYMPTOMS section occurs on the last line of code.

Additional query words: KBDSE

Keywords: kbbug kbfix kboop kbvs600sp3fix KB221735

-

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

© Microsoft Corporation. All rights reserved.