Hi Bill,
From VFP help #DEFINE
Caution Do not use system variables for eExpression. System variables are not evaluated until run time.
See also thread#
808212Agnes
>This works from the command window.
>
>#DEFINE DV _vfp.startmode=0
>if DV
> ? 'Works'
>endif
>
>why doesn't this work?
>
>file myInclude.h
>#DEFINE DV _vfp.startmode=0
>
>myForm
> include file: myInclude.h
>
>myForm.Init()
> if DV << triggers error "variable 'DV' not found"
> .....
> endif
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]