Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling procedures in an app w/ set procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00039433
Message ID:
00039479
Vues:
31
> i'm using set procedure to myapp.app i didn't use additive but it's the > only set procedure i'm using ( so i don't think that the additive would > matter ). after the set procedure i try DO MyPrg and get the error that > it can't find MyPrg.prg. > If, however, i execute Mainprg.prg ( the prg set as the main in the project > the app was compiled from ) it executes fine. > > In the past with fox2.5, we were able to write a library of prgs, compile > into an app set procedure to that app, and then any prgs in that app are > accessible. i'd like to do this same thing in vfp5. > > i thought about just passing the main a parameter telling it what prg to > run but this seems like a kludgy workaround. It's also a pain, then, to pass additional parameters to the procedures & return results. I think that Arnon hit on the right idea some number of weeks ago by suggest that you make the procedures Classes with OLEPUBLIC, and then reference them that way. /Paul
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform