Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search replace in all forms
Message
From
04/07/2006 10:55:15
 
 
To
04/07/2006 10:27:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133601
Message ID:
01133607
Views:
11
>i need to replace several lines of code with a single line of code in about 300 forms and programs, which is the best way to do this?

If you use a form as a table, as in Use MyForm.scx, you can then browse it. It has several records, for all the objects, etc. of the form. Each record has a "Methods" field in which you can find the code.

You could write a wee prog to do the following:

Get together an array of all your forms, using ADIR()
Go through the array, opening each form as a table
For each table:
Scan through each rec, testing the methods field (memo) for and replacing the bit of code
Don't forget to close the table (USE )
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform