Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing 2 PRG Files for Differences
Message
From
17/01/2002 07:32:53
 
 
To
16/01/2002 14:35:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00605571
Message ID:
00606009
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Renoir,
I have the following IntelliSense script assigned to BC:
LPARAMETERS oFoxcode

LOCAL lcReturn, lcFileA, lcFileB

lcFileA = GETFILE("PRG;TXT","","",0, "File 1 to compare")
lcFileB = GETFILE("PRG;TXT","","",0, "File 2 to compare")

lcRetVal = 'RUN /N "C:\PROGRAM FILES\BEYOND COMPARE\BEYOND32.EXE" ' +;
           lcFileA + ' ' +;
           lcFileB

oFoxcode.valuetype = "V"

RETURN lcRetVal
This script returns a string that calls BeyondCompare with the selected files. Very handy and as Frank mentioned, you can then edit the files from within BeyondCompare.

HTH
>>>Working on some legacy stuff and have just finished reworking a PRG and see that there is another one that is very similar. Is there a clean way of comparing them to note the differences? I used Word, but it found every difference including where text positions were changed and Hex Workshop doesn't have enough flexibility in how the text is displayed or allowing a "result" document to be created. I want to generate a file that includes all the difference and then edit it. Thanks!
>>>
>>>Regards, Renoir
>>
>>
>>I use a program called Beyond Compare.
>>
>>Cathy
>
>Cathy,
>
>Very cool! In your experience what have you found the best way is to work with result file? I used the File Differences Report with the Over/Under option, but I still need to remove the left column that contains the Left/Right information. How do you clean it up after editing?
>
>UPDATE: Or do you simply use the result file as a guide when editing the original PRG?
>
>Renoir
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform