>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement