Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runnig VFP exe from network
Message
From
08/09/1998 14:09:12
 
 
To
08/09/1998 12:30:35
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00134075
Message ID:
00134155
Views:
13
>>>>>After I moved my exe on the network it works properly from any other PC but my own. It (exe) always "looks" for local views that I defined in the data environment of my form in my PC c:\myprj\data directory rather then on network. If I would rename dir on my PC I am getting error, exe still looks for data on my PC. What I did wrong?
>>>>
>>>>You may and should reset Database property for DataEnvironment.Cursor(s) propgrammatically in DE.BeforeOpenTables event.
>>>
>>>Dear Edward,
>>>
>>>Thank you for your replay, but it still doesn't work.
>>>In DataEnvironment BeforeOpenTables event I have now code:
>>>THIS.Cursor1.DataBase = CURDIR()+"customer.dbc" - where customer.dbc is my database container and Cursor1 is my local view in that container.
>>>Application still looks into my local PC dir and generates an error...
>>
>>Did you check CURDIR() value? Try to put literal path, just for testing.
> Yes I just check, it shows right dir which point to the network drive...
>I cannot understand why exe works without any problem from any other PC which doesn't have FoxPro installed and no such dir structure like on my own?

It seems to me, that your development dir structure is hard-coded in some place of your SCX/VCX. Ususally, it happens if you didn't put all project components on relative path to the project file.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform