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
Divers
Thread ID:
00084903
Message ID:
00084906
Vues:
24
>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.

--------
FOUND HINT OF ANSWER:

In searching the messages from last year for discussions of above
problem, I found a message from Paul Vlad Tatavu saying:

"Forms can't see constants defined in a PRG".

So, I am still curious about any suggestions, but at least
I'm getting somewhere.
Tom Hayward, Visual FoxPro Programmer and Tutor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform