>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only