General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only