Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace code...
Message
From
09/10/2000 19:28:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427098
Message ID:
00427103
Views:
14
First of all, find all files that contains string 'USE C:\FOXTEMP\'. You can do this by File Search in Windows. Than open each module and search in all methods of that module. Finally, for class libraries it is somewhat tricky. You may try to find classes that contain such string by following way:
SELECT MyLIB.ObjName from (MyClassLibrary.VCX) MyLIB where 'USE C:\FOXTEMP\' $ upper(MyLIB.Methods)
Don't forget after such search to close all tables opened (VCX will be opened as VFP table by such way).

Finally, need to say that better idea is to use command
USE ("C:\FOXTEMP\" + FILE)
Try to avoid '&' usage if possible.

>How can you do Find and Replace code in Visual Fox Pro for the entire application, not just the current form you are editing? I need to change a hard coded drive "USE C:\FOXTEMP\FILENAME.DBF" to a replacable code "USE C:\FOXTEMP\&FILE" throughout the entire application and don't know how to do it.
>
>Thanks!
>Colombo.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform