Microsoft KB Archive/135708

= BUG: Changing PageOrder in PageFrame Gives Incorrect PageName =

Article ID: 135708

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * 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 Q135708



SYMPTOMS
If you change the PageOrder property of a page on a pageframe, the Page Name value will become invalid. Issuing the following in the debug window, returns the name of the page that was located in that position prior to changing the PageOrder: .PageFrame1.Pages[.Pageframe1.ActivePage].Name NOTE:  is replaced with the name of your form.



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



Steps to Reproduce Problem
 Create a new form and add a pageframe to the form. Set the PageCount property of the form to 3. Select the PageFrame, click the secondary (right) mouse button, and click Edit. Add a text box to each page of the PageFrame. Change the PageOrder property of Page1 to 2. Save the form as Test1.</li> Run the form.</li> On the Tools menu, click Debug. (Click Debugger for Visual FoxPro 5.0 and 6.0)</li>  Type the following into the Debug window (the Watch window in Visual FoxPro 5.0 and 6.0): TEST1.PageFrame1.Pages[TEST1.Pageframe1.ActivePage].Name </li></ol>

If you click Page2, the debug window shows Page1 as the page name. The page name should be Page2.

Additional query words: kbvfp600

Keywords: kbbug KB135708

-

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

© Microsoft Corporation. All rights reserved.