Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diff finder between two versions of a class
Message
From
03/11/2003 21:45:03
 
 
To
03/11/2003 21:26:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00845883
Message ID:
00845896
Views:
11
>>Does somebody have a routine that finds differences between two versions of a class? Maybe it would do a fc for each method and present reports.
>>
>>TIA,
>>
>>Alex
>
>Here is a low-technology method that you can use in an emergency. It works for most file types.
>
>Use the program SCCText.prg to convert both versions of your class library (or form, etc.) to a text version. This program is commonly used if you integrate with Visual SourceSafe.
>
>Open one of them in MS-Word, and give the command to compare files. Word will ask you for the other file, and show differences: lines moved, erased and added.
>
>One problem is that SCCText doesn't sort methods - it uses the physical order of the methods, in the VCX file. Some programmers have made a modified version of SCCText.prg, to sort methods before generating the text - perhaps you can find what the necessary commands are, by searching the message area.

Gracias Hilmar,

I don't have the SCCText but can use the class browser. But I didn't know about a word comand to compare files! What a find. I do have a file compare utility ahich may be better in this case.

Glen Domericki indicates that his approach in SourceCompare is to sort the methods and probably properties alphabetically. Nice solution.

Thanks again,

Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform