Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default path
Message
From
12/01/2007 00:08:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/01/2007 21:02:29
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01184870
Message ID:
01184894
Views:
15
>set defa to path problem
>In my current system 's start program , set defa to U:\abc\system\
>Now, can i change into set defa to \\mynewserver\system\ ??
>
>More, in my report command
>report form U:\abc\system\report\account.frx
>when I change into \\mynewserver\system\abc\...... <-- it seems invalid

You should change the paths in your code (i.e. paths to reports etc) to be relative. That's what VFP does internally, anyway - all paths inside the .pjx, for example, are relative.

A VFP app should work off an UNC just the same as off a mapped or local drive. There was a problem in VFP6 up to SP3, where the exe couldn't find itself when run from an UNC path (i.e. it would load the runtime and then the runtime couldn't find the exe), but that was fixed in SP4.

Also, when putting paths in code, put them in quotes - the quotes can be omitted if there are no spaces in the path, but it's generally a good habit to put them anyway. Even better, if you keep the paths in variables, it's best to use name expressions:
lcFrx=fullpath("my reports\firs report.frx")
report form (lcFrx)    && a name expression works even with spaces

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform