Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Can't I #DEFINE DV _vfp.startmode=0 ?
Message
From
23/07/2003 03:04:35
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
22/07/2003 12:09:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812415
Message ID:
00812665
Views:
26
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#808212

Agnes
>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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform