Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Development only commands
Message
From
17/01/1997 21:07:00
 
 
To
17/01/1997 12:30:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017698
Message ID:
00017750
Views:
64
>Somewhere I read about a command you could use to specify a command line for development execution only. Then when running an EXE it would be skipped. Something like...
>
>if xxxxxxxx = .T.
> your command here
>endif
>
>Also I am running VFP 3.0

I'm using something like this in the main program:

public _developtime
_developtime=.t.
on error _developtime=.f.
compile dummy.prg
on error

At runtime the COMPILE command is not available, so will have an error. Since it's the only possible error (another possible error is to not have the dummy.prg file, but the result is the same at runtime), you can trap it with the ON ERROR to set your _developtime variable.

Vlad Tatavu
Previous
Reply
Map
View

Click here to load this message in the networking platform