Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set path problem
Message
From
05/07/2001 03:54:15
 
 
To
04/07/2001 22:37:13
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00526823
Message ID:
00526845
Views:
13
Agnes,
VFP keeps programs in cache to improve performance. Sometimes VFP gets confused and runs an old or as in your case a different version. I did some testing and found that when I specified the path (e.g. DO DirA\MyProg, DO DirB\MyProg), everything worked ok. However, if I changed the path between the calls and then simply called the program without specifying the path (DO MyProg), VFP got confused and executed the wrong program.
To solve this problem, you could call the following command which removes the compiled programs from the cache:
CLEAR PROGRAM
*-- call your program
>Did u meet this b4 ?
>'same database name, same tablesname but within two different directory' A,B'
>
>I got a program in C directory which will call A's program, B's program.
>As C's program call A's prg, it returns the correct result.
>Now.In the next step, C's program will call B's prg , but it returns the A's result..
>
>Before Call B's prg, I have set path to B's path..
>
>so. How can i correct it ?
>
>
>Thanks
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform