I've been trying to debug a problem with a preprocessor
directive:
#DEFINE Cn_Icmore 14250
(this is code I inherited from FP 2.6, and have to convert
to VFP 5.0a, Service Pack 3)
When I try to debug this, according to the "Hacker's
Guide", I should be able to do a
WAIT WINDOW [check icmore value Cn_Icmore]
using square brackets instead of single or double quote marks,
but I can't get that to work either.
I've searched through piles of articles and books, including
the MSDN CD.
In the watch window of the Debugger, it says "Expression
cannot be evaluated", because it is not a variable....
Is there anyway to track the value of a preprocessor directive
during run-time?
The error message is:
ERROR 12: VARIABLE NOT FOUND
The message appears when I click on the command
button, which has the following event code in the VALID:
RETURN l_event(Cn_Icmore)
(I have all the corresponding code for "l_event()" in the PRG)
I am just trying to find out how to track the "value" of a DEFINEd
constant in the debugger, if there is a way.
Thanks.
Tom Hayward, Visual FoxPro Programmer and Tutor