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:26:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/11/2003 20:57:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00845883
Message ID:
00845890
Vues:
15
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform