Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Really excluding stuff
Message
De
15/11/2000 17:22:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00442350
Message ID:
00442369
Vues:
14
>Yeah, that's what I meant by this, "I could call the utility with macro expansion". I was hoping not to have to do that.
>
>Thanks,
>
>Michelle
>
>
>>Using a macro reference (or a name substitution) will do what you want.
>>
>>You could code it like this:
>>
>>DO ('yourfile')
>>-or-
>>myFunc = 'yourfile'
>>DO &myFunc
>>
>>This will work for a procedure call, but if you need a function type call you have to use a macro:
>>
>>myFunc = 'yourfile'
>>= &myfunc(param1,paramx)

Another "dirty trick" you can do is to have a dummy file in your app/exe that is excluded that has all your "declarations" in it:


*DUMMY.PRG
FUNCTION myFunc
PARAMETER one,two

FUNCTION Number2

etc...


Be sure to manually add this file to your project and then be sure it is marked as excluded when you build.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform