Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search replace in all forms
Message
De
04/07/2006 10:55:15
 
 
À
04/07/2006 10:27:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01133601
Message ID:
01133607
Vues:
12
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform