Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mega search and replace
Message
From
01/11/1999 23:28:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00281624
Message ID:
00285276
Views:
22
>>>I need to do a search and replace on all of my code (.PRG's and forms mostly) to re-name some functions. Does a tool exist that will allow me to do this all at once on both programs and forms?
>>>
>>>BTW, I'm doing this for political reasons, not for code reasons, so the "I don't want to change my code, it will introduce bugs" argument is not an option.
>>>
>>>Any help would be appreciated.
>>
>>Visual MaxFrame Professional has a tool that does this.
>>
>>HTH :)
>
>I really don't want to spend $400 to do a search and replace... Does anyone know of any cheaper tool or utility?

PMFJI - FWIW: You could probably do the PRGs really easily with a loop using ADIR() to get all PRG names, then FILETOSTR() to open each then STRTRAN() to fix the function names then STRTOFILE() to write them back out. Similar with the Forms, just a loop to get all the file names, open them as tables (USE xxx.Scx) then spin the fields ( FOR ii = 1 to FIELDS() / xx = FIELD(ii) / etc...) with STRTRAN() then close the SCX/table...

Sorry I haven't written a PRG to do this. I use an old DOS Search.Exe (not PD) to do the PRGs for anything like that, and haven't needed to change the SCX or VCX function names in a big way yet...

HTH

Rob
Previous
Reply
Map
View

Click here to load this message in the networking platform