Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Really excluding stuff
Message
From
15/11/2000 17:54:49
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00442350
Message ID:
00442388
Views:
9
>Tell ya what. I'll look at this in the morning and see if it makes more sense with my eyes open. :)
>
>Thanks,
>
>Michelle
>

OK, but here's an example:
-----------
*MAIN.PRG
WAIT WINDOW myFunc(5)

-----------
*myFunc.PRG
FUNCTION myFunc
LPARAMETER p1
RETURN "The answer is:"+TRANSFORM(p1)

-----------
*dummy.PRG
FUNCTION myFunc
LPARAMTER p1

-----------
Now create a project named MAIN, add the main.prg, and the dummy.prg, and be sure to mark the dummy.prg as excluded. DO NOT add MYFUNC.PRG (but you will need to compile it). Now build the MAIN project into either an .APP or an .EXE. Now DO MAIN.APP or DO MAIN.EXE as appropriate.

If all goes well you'll see the WAIT WINDOW.

>
>>You'll still need to have a file on the disk that's named the same as your function. This file will have the real code in it. You have this empty file (except for the FUNCTION declarations) that the project manager actually uses for the definitions of the functions, but since there is no code in it (and it's excluded), the real function will be used at runtime, the realfunc.fxp file will be what is actually executed, not the excluded dummy.prg.
>>
>>All I can suggest is that you try it and you'll see what I mean.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform