Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check in on shut down
Message
From
08/03/2002 07:54:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
08/03/2002 06:45:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Source Safe Control
Miscellaneous
Thread ID:
00630065
Message ID:
00630087
Views:
21
>Yes, I see a way. It shouldn't be too complicated, either.
>
>As I said, with Project Hooks. Look at this sample code (that opens the files, for the currently active project), and adapt the corresponding commands, to check in / check out.
>
>Use method .CheckIn() instead of .Modify() - see help under "Project Manager Hooks". To check the SCC status, use property SCCStatus.
>
>Viele Grüsse, Hilmar.
>
>
>* The following commands modify all forms of the active project,
>* Except for VFX forms. Useful for a systematic review.
>
>clear
>FOR EACH oFile IN Application.ActiveProject.Files
>	* For all forms, except, excepto vfx*.scx
>	if oFile.Type = "K" and left(justfname(oFile.Name),3) # "vfx" && non-VFX Form
>		* ? justfname(oFile.Name)	&& This would just list the files
>		oFile.Modify()	&& modify form
>	endif
>ENDFOR
>
>#IF .F.
>Codes for types:
>d	Database
>D	Free Table
>Q	Query
>K	Form
>R	Report
>B	Label
>V	Visual Class Library
>P	Program
>L	FLL
>Z	APP
>M	Menu
>T	Text
>x	Other
>#ENDIF
>
Hilmar,
this is a good solution for elements in a Project. But now update the Project itself?

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform