PRB: Cannot Update Source Code Control Status From ProjectHook.Init() (293293)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q293293 SYMPTOMS
When you try to update files that are under Source Code Control (that is, Visual SourceSafe) from the ProjectHook's Init event, the Source Code Control methods that are associated with the File objects fail.
CAUSE
The Visual FoxPro (VFP) documentation states, "Note that the project object and its properties and methods are not available in the ProjectHook object Init event." Because the project object logs on to the Source Code Control database, any attempt to operate on the files at this time fails.
RESOLUTION
Use a different method to operate on the files, For example, set a flag so that the first operation on any file causes the latest version of all the files to be brought down to the working folder.
STATUS
This behavior is by design.
REFERENCES
For more information on ProjectHooks, see chapter 32, "Application Development and Developer Productivity," in the Visual FoxPro Programmer's Guide.
For more information about Source Code Control, see chapter 29, "Developing in Teams," in the Visual FoxPro Programmer's Guide.
Modification Type: | Minor | Last Reviewed: | 4/24/2003 |
---|
Keywords: | kbCodeSnippet kbprb kbProjManager KB293293 kbAudDeveloper |
---|
|