>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.