Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including function from another prg
Message
From
28/11/2017 10:40:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655879
Message ID:
01655888
Views:
64
Likes (1)
>Hi all,
>a silly one that I can't square away. I have a program prg1 that has some useful functions. I want to use these functions in program prg2 but if i use set procedure additive I get errors when calling the functions. I can issue the command do prg1 at the top of the program prg2 and I can then use the functions. Am sure there is a better/proper way to open up prg1 and it's functions so I can use them in pgr2 but drawing a blank.

Check your paths - make sure you don't just say "set procedure to prg1 additive" but "set procedure to some\relative\path\prg1 additive", where the path is relative to your app root (i.e. where your .pjx is and where you sit when you run). Also, VFP will not look for .prg, really, it will look for .fxp, so make sure you got one.

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