Microsoft KB Archive/315654

= FIX: Code Changes Are Lost When Switching Between Bookmarks in Different Methods =

Article ID: 315654

Article Last Modified on 1/24/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q315654



SYMPTOMS
If you use bookmarks to mark code in two different methods of a form, when you add changes to one of the methods, switch to another bookmarked method, and then switch back to the altered method code, your changes are gone.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior

 * 1) Create a form called &quot;Test&quot;.
 * 2) Enter code into the form's Activate method. Press ALT+SHIFT+F2 to bookmark the code.
 * 3) Enter code into the form's AddProperty method. Press ALT+SHIFT+F2 to bookmark the code.
 * 4) Press the F2 key to go to the bookmark in the Activate method. If this fails, use the Properties sheet to choose the Activate method.
 * 5) Enter some code changes in the Activate method.
 * 6) Press the F2 key to go to the bookmark in the AddProperty method.
 * 7) Press the F2 key to go to the Activate code with the changes.

Note that the changes to the Activate code that you made in step 5 are gone.

Additional query words: kbVFP700sp1fix

Keywords: kbbug kbfix KB315654

-

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

© Microsoft Corporation. All rights reserved.