Not sure if this is what you mean, but at run-time in the development environment, you can View Local variables by choosing Local from the View menu. Put in a breakpoint where you want to stop the code and look at variables. In the immediate window you can also query variables and change properties. You can even hover the cursor over the code and see the current value of a variable.
Private Function DoIt(ByVal nInput as Long) as Boolean
nInput = nInput * nInput
if nInput > 0 then DoIt = True
end function
Insert a breakpoint at the second line of code and run it.
Code execution stops at the breakpoint.
In the Immediate window type:
?nInput
and hit return and you'll see the current value of nInput
OR
hold your mouse over any occurence of nInput in the code
and you'll see a tooltip that shows you its value
OR
in the Locals window, click on the node for the nInput variable to see it's value. Works with objects and their properties, though some libraries hide info (not sure why).
scarfhead