Microsoft KB Archive/141971

= PRB: Setting PageOrder May Generate an Error =

Article ID: 141971

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q141971



SYMPTOMS
Changing the PageOrder property of a page to a value higher than the PageCount property will trigger the error "Expression evaluated to an illegal value."



WORKAROUND
The PageOrder property should not be greater than the value of the pageframe's PageCount property.



STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a new form. Add a pageframe to the form. Set the PageCount property of the pageframe to 0.  Create a new program file that contains the following code: SET PROCEDURE TO   DO FORM _SCREEN.FORMS(1).PAGEFRAME1.ADDOBJECT("Page1","Page1") _SCREEN.FORMS(1).PAGEFRAME1.ADDOBJECT("Page2","Page1") _SCREEN.FORMS(1).REFRESH

DEFINE CLASS Page1 AS PAGE ADD OBJECT command1 AS COMMANDBUTTON ENDDEFINE  Run the program. A form with two pages should appear.  In the Command window, type: _SCREEN.FORMS(1).PAGEFRAME1.PAGE1.PAGEORDER=3 The error "Expression evaluated to an illegal value" appears </li>  In the Command window, type: _SCREEN.FORMS(1).PAGEFRAME1.PAGE1.PAGEORDER=2 No error appears </li></ol>

Additional query words: VFoxWin

Keywords: KB141971

-

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

© Microsoft Corporation. All rights reserved.