Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path in compiled fxp?
Message
From
11/07/2016 15:50:36
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
11/07/2016 05:03:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01637953
Message ID:
01638231
Views:
81
>>Why not, as an experiment? If that solves the problem... And the overhead of compiling is negligible nowadays. The code you have on the server, which checks for code change and compiles, can be moved to be executed on the workstations.

+1

Certainly you can overcome these sorts of path issues by judicious use of HOME and set path in the exe and/or supplying the full path when running the fxp.

Marco, other options to avoid extra complexity:

1) Move the prg rather than fxp to each workstation where compilation will be automatic when you run it. If you're worried about privacy of source code, distributing a standalone fxp is a few seconds of effort more secure than a prg.

- or - the way we used to do it:

2) Use FORCEPATH() to supply a fully pathed filename whenever you DO an external fxp. If you keep the url to the fxp location in a publicly accessible property or variable, it's easy enough.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Reply
Map
View

Click here to load this message in the networking platform