Microsoft KB Archive/180070

= FIX: RESTORE SCREEN Does Not Refresh Form in VFP 5.0 =

Article ID: 180070

Article Last Modified on 3/23/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q180070



SYMPTOMS
Using the RESTORE SCREEN FROM command does not restore information on a form or on a window created with the DEFINE WINDOW command when either object was saved to a memory variable using the SAVE SCREEN TO command.



RESOLUTION
To refresh the form, use the toggle the LockScreen property of the form as shown below: Testform.LockScreen=.T.  RESTORE SCREEN FROM y   Testform.LockScreen=.F. There is not a way to refresh a window created with the DEFINE WINDOW command.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.



Steps to Reproduce Behavior
In the FoxPro Command window, enter the following commands: Testform=CREATEOBJECT("form") Testform.Show ? "Hello" SAVE SCREEN TO y  CLEAR RESTORE SCREEN FROM y "Hello" does not appear on the form and the form is not refreshed.

