Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Really excluding stuff
Message
From
15/11/2000 17:22:52
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00442350
Message ID:
00442369
Views:
7
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform