Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including function from another prg
Message
De
28/11/2017 10:40:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2016
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01655879
Message ID:
01655888
Vues:
62
J'aime (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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform