Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program wide change
Message
 
 
To
17/01/2014 12:32:43
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01592010
Message ID:
01592110
Views:
78
>>Is there a way that you can have an INCLUDE file or some other way that when you compile a project, it will substitute a change throughout the program no matter where it is found. As an example, let's say I need every instance of "It_Was_This" to be changed to "Now_It_Is_This"
>>
>>So, the original code still says "It_Was_This" but the complied code actually reads "Now_It_Is_This"
>>
>>Thanks in advance.....
>
>There was a statement - I forget from whom, but it is that reuse in the small is well understood. If you build apps using large conglomerates of code, classes, they are hard to fix small pieces. So, if you keep all pieces really small, and avoid aggregating, you can easily change. For example, if you have a it_was_this.prg you can change the content of it_was_this.prg so it becomes Now_it_is_this without changing the entire app to replace it_was_this to now_it_is_this.
>
>You can use the great utility GoFish to find all references to a piece of code and replace them.

Thanks Mike. I didn't think about GoFish.
Previous
Reply
Map
View

Click here to load this message in the networking platform