The information in this article applies to:
SYMPTOMS
In Visual Basic, when you check out a form by using the SourceSafe Add-In,
you automatically check out both the .frm and .frx file for that form. None of the changes are saved to either the .frm or the .frx file. However, the changes are still available in Visual Basic. CAUSEChanges were not saved to either the .frm or the .frx file because the .frx file is read-only. The .frx file is read-only because the file was never checked out. RESOLUTIONTo save the changes, switch to the Visual SourceSafe Explorer and check out the .frx file. Then switch to Visual Basic and save the project once again. STATUSThis behavior is by design. MORE INFORMATIONIt is always important to keep the Visual Basic .frx and .frm files in sync with each other in every way. Functions that Keep the .frm and .frx Files in Sync AutomaticallyThe following functions automatically keep the .frm and .frx files in sync:"Add File" from inside Visual Basic Situations Where You Need to Keep the .frm and .frx Files in Sync ManuallyThe following operations don't keep the .frm and .frx files in sync unless you do it manually:Any SourceSafe Explorer commandThis includes (but is not limited to) Add, Delete, Get, Check Out, Check In, Undo Check out, and Share. In all these cases, you need to ensure that the action is taken on both the .frm and .frx file. Any actions inside the History dialog box (for example, Get, Pin, and Rollback) must be taken from inside Visual Basic. However, the .frx still does not tag along. Therefore, Microsoft recommends that you take these actions only for .bas and .cls files, or for .frm files that do not have an .frx file. For a .frm and .frx file pair, use the SourceSafe Explorer or command line to operate on both files (one at a time, in the Explorer). A Share action, even if taken from Visual Basic, doesn't include the .frx file automatically. However, in this case, you don't need to start SourceSafe; just make sure to choose both the .frm and .frx files in the Share dialog box inside Visual Basic. Steps to Reproduce Behavior
Additional query words:
Keywords : kbSSafe400 kbSSafe500 kbSSafe600 kbVBp400 |
Last Reviewed: August 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |