Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diff finder between two versions of a class
Message
De
03/11/2003 21:45:03
 
 
À
03/11/2003 21:26:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00845883
Message ID:
00845896
Vues:
12
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform