Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find the current method\line #
Message
From
27/03/2001 10:18:54
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00487291
Message ID:
00488971
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform