Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way / utility to compare two forms
Message
From
18/07/2007 14:48:58
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241471
Message ID:
01241698
Views:
35
>>>OK, I modified scctext.prg to have a front end to allow you to pick the file to convert via getfile.
>>>
>>>I then used windiff to make the comparison of the two created text files.
>>>
>>>Is any body interested in the code to modify scctext.prg?
>>
>>Hi Mike
>>
>>I think it's a really bad idea to change the files that come with VFP. How much code could you need?
>>
>>
>>LOCAL m.lcFile
>>m.lcFile = GETFILE()
>>DO (HOME()+"scctext") WITH m.lcFile
>>
>The code changes go into another file. I made a backup copy of the source one and gave the new one a new name. So, I didn't modify the supplied code, but used it as a base for the changes.
>
>Your code above, is a part of it. If you examine the original code, it expects 4 parameters to be passed. They can be derived from the filename. However, if you just pass the file name it doesn't create the others in the program.
>
>I was just making an offer to give back to this community that has helped me in the past.

I appreciate the sentiment. It's the engineering I'm worried about. If you made your updates in a separate program (like my simplified example) - you leave the scctext.prg alone, you'd handle all the additional features in your new program. You'd only have to change _scctext in tools options or config file to implement.

If Elvis was a programmer, "A little more engineering, a little less hacking" might have been his last song. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform