Thanks for the input. We are going to continue using CVS without scX for the next while, but I will probably be revisiting scX in the future and your code sample will definitely help.
Kevin O'Shea -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tristan Leask Sent: Thursday, October 19, 2006 4:42 AM To: [EMAIL PROTECTED] Subject: RE: What Project File is selected? Hi Kevin, I think the reason why the sc files are getting updated on the clear events is because a timer object is getting dumped from memory and in its unload event it tells the sc file to update (or flags it in the changelog file). The timer is used to keep checking to see if the design window for the class library is open so that it knows when you have finished editing the file. In theory you could just edit the files normally without scx and then just before you are about to commit the sc files up, you could then run a command to generate all the sc files. Eg... oFunctions = newobject("sesFunctions", "scCommon.prg") lnFiles = ADIR(laFiles , 'c:\classlibs\*.vcx') for x = 1 to lnFiles lcFile = 'c:\classlibs\'+laFiles(x,1) oFucntions.BinToSC(lcFile) endfor Then after checking out you could run... oFunctions = newobject("sesFunctions", "scCommon.prg") lnFiles = ADIR(laFiles , 'c:\classlibs\*.sc') for x = 1 to lnFiles lcFile = 'c:\classlibs\'+laFiles(x,1) oFucntions.SCToBin(lcFile) endfor I hope this helps. Tristan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin O'Shea Posted At: 18 October 2006 17:04 Posted To: Profox Archive Conversation: What Project File is selected? Subject: What Project File is selected? I am testing the integration of Paul McNett's scX project hooks into our project. I am looking to use it to change the class files into text based files to store in CVS. During my initial testing, I have found that the class vct and vcx files are getting regenerated quite a bit from the sc file - the class file's datetime stamp seems to get updated on CLEAR statements I issue in the command window, and thus don't match up with the sc file. I only need the sc text based files to be created before adding them to CVS and I only need the classes rebuilt when I get the latest version, or check out the file from CVS. I am trying to implement the following logic in my project hook class: When Checking a Class File in - create the sc file - delete the vct and vcx files When modifying a Class File - if no vct and vcx files, create from sc - else use the existing vct and vcx file I have a hook into the Right Click Check Out event on a file in the project window through MENUHIT in the _foxcode table, but I can't seem to find a way to identify the selected file I am checking in. Does anyone know of a way to get the selected file at this time, or a different approach to accomplish the same task. Thanks, Kevin O'Shea Versaterm Inc. e-mail: [EMAIL PROTECTED] [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

