Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#Define and debug problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
#Define and debug problem
Divers
Thread ID:
00084903
Message ID:
00084903
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform