FIX: Code Changes Are Lost When Switching Between Bookmarks in Different Methods (315654)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0

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.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a form called "Test".
  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.

Modification Type:MajorLast Reviewed:1/24/2002
Keywords:kbbug kbDSupport KB315654