Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Procedure In VFP exe?
Message
From
02/05/2013 11:30:18
 
 
To
02/05/2013 09:09:26
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01572452
Message ID:
01572473
Views:
48
>If I define testproc in myprocs.prg and set procedure to myprocs.prg in the main program of the exe,

Does this succeed ? myprogs.prg $ set('proc') --- if yes, just DO testproc, otherwise look for the reason

>when I try DO testproc IN mytest.exe I get a "Procedure 'testproc.prg' does not exist". Looks like the "set procedure to" command does not get called in this case.

nahh, fox probably thinks you are specifiying "IN mytest.exe" to look there for a top level program.
I am not certain on setting a procedure file inside another exe - if that does not work, create a small setproc load function in mytest.exe that you call once on startup of myembellished.exe: do setprocfunc in mytest.exe.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform