Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call proc in different directory
Message
From
25/06/2009 04:30:39
 
 
To
24/06/2009 13:36:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01408150
Message ID:
01408316
Views:
72
>What syntax can i use (if this can be done at all) to call a utility procedure that is in a sub-directory that is not in the path? For example
>SET PATH TO myDataDirectories
>DO somecode
>
>** myFunc is in a directory not in the PATH
>** I want to run this function and store the result in a variable
>
>myVar = myFunc(myParms) --> Error:  File myFunc.prg does not exist
>myVar = subdir\myFunc(myParms) --> Error: Syntax Error
>? subdir\myFunc(myParms) --> Error:  Command contains unrecognized phrase/keyword
>
>Can this be done?
>
>Thanks......Rich
* when the application or module start, load the file into VFP
DO subdir\myFuncFile.fxp && myFuncFile have to start without free code

myVar = myFunc(myParms)
Previous
Reply
Map
View

Click here to load this message in the networking platform