Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global replacement
Message
From
18/11/2006 08:20:05
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01170886
Message ID:
01170945
Views:
12
Hi Dan

>>>>>Check Code Refrences on the Tools menu.
>>>>>
>>>>>>Is there a utility available that will allow me to globally replace every occurance of a text segment throughout a form's methods?
>>>>>>If there isn't, this might be a nice litte addition for the Sedna team to consider.
>>>>
>>>>Thank you fellows. I'm on it. VFP continues to amaze me with it's depth.
>>>>Grady
>>>
>>>Hey Grady?
>>>
>>>If you're finding you have lots of common code in various methods you may want to consider breaking that out into a new object. Then you can change things in one place instead of in several.
>>
>>Nifty idea, Mike. Most of the code is under a button click.
>
>If it's under *a* button click, you don't need a search tool. If it's under *many* button clicks, you need a code reorganization. ;-)

http://fox.wikis.com/wc.dll?Wiki~EventsShouldAlwaysCallMethods~SoftwareEng

It's no fun playing hide and seek with code. Put the methods on the form - have the buttons call the form methods.
Previous
Reply
Map
View

Click here to load this message in the networking platform