Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find the current method\line #
Message
De
27/03/2001 10:18:54
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00487291
Message ID:
00488971
Vues:
11
I use the _CLIPTEXT VFP system variable to store information on the fly about programs that are running without having to interrupt them during execution. Thus, if I want to see a variable in a method and grab its value at runtime, I place the following code in the method text:

local lnSomeVariableToWatch

...

_cliptext = str(lnSomeVariableToWatch)

...

return

This places the contents of the variable into the clipboard. I keep the ClipBoard Viewer on my QuickLaunch bar for just this purpose. If you want to capture several variables you can:

local lnSomeVariable, lnAnotherVariable, lcFinalVariable

...

_cliptext = "lnSomeVariable = " + str(lnSomeVariable) + chr(13)

...

_cliptext = _cliptext + "lnAnotherVariable = " + str(lnAnotherVariable) + chr(13)

...

_cliptext = _cliptext + "lcFinalVariable = " + lcFinalVariable

...

return

Hope this helps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform