Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Yousfi Benameur
 To: Sing Chung Hii
  Where is Sing Chung Hii?
 Sing Chung Hii
Subject: RE: Global change of names
Thread ID: 209547 Message ID: 209550 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, December 29, 2008 2:48:44 PM         

> Is there a tool that can do a global change of database name, file names, variable names, field names, etc? What happen is I have a program on hand written by a colleague. He wrote the program called invoice, then 'save as' to another program which function as purchase but with all the names remain as 'invoice'. These encompasses the database name, the table names, the form names, field names, report names, control names, properties and the codes. The original program invoice is still in use and existing side-by-side. I find it very confusing when managing them.
> Thanks in advance.

Hi Sing
you can do changes with file collection.see on foxhelp "files collection (visual foxpro)".
you can make changes in properties (name),methods,.. with : "with....endwith" in all the files of project.

see also in foxhelp:File Object Properties, Methods, and Events.
can use these syntaxes
_VFP.ActiveProject.Files('Main.prg').Modify( )




Global change of names Posted by Sing Chung Hii @ 12/29/2008 2:34:24 PM
RE: Global change of names Posted by Yousfi Benameur @ 12/29/2008 2:48:44 PM
RE: Global change of names Posted by Sing Chung Hii @ 12/31/2008 12:18:28 AM
RE: Global change of names Posted by tushar @ 12/31/2008 6:08:06 AM