Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find/Replace
Message
De
18/09/2003 17:43:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/09/2003 16:56:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00830473
Message ID:
00830495
Vues:
24
>I have a project in which I want to replace a reference to a file. Unfortunately, instead of programming a variable in all the forms to reference the file, I 'hard coded' the name of the file into the objects.
>
>Is there a way to 'globally' search all the controls in a form or project to replace this name?
>
>CM

Without any special tools, you can do it as follows.

Do a file search, to get all the files that contain a certain text.

Open each file, and do search and replace.

For class libraries, you can generate code with the code browser, and search the resulting text files. This is to find out which of the classes contain the texts.

Since this is not a frequent requirement, I have done it this way. It may take you 10-20 minutes for the entire project.

Some tools in the download section can search in the entire project - but I don't know of any special tool that can actually do the replace.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform