private ShouldBeHidden >LOCAL IsLocal >ShouldBeHidden="this is private" >isLocal="this is local" >do trythis with ShouldBeHidden, isLocal > >procedure trythis(tuVisible, tuInvisible) > list memory TO tmp.txt >>and got this:
>ISLOCAL Local C "this is local" hidden_private >SHOULDBEHIDDEN > (hid) C "this is private" hidden_private >TUVISIBLE Local shouldbehidden >TUINVISIBLE > Local islocal > 4 variables defined, 42 bytes used >>When I called it as a function, got this:
TUVISIBLE Local C "this is private" trythis >TUINVISIBLE > Local C "this is local" trythis >>When I called it as trythis(@ShouldBeHidden, isLocal), I got
ISLOCAL Local C "this is local" hidden_private >SHOULDBEHIDDEN > (hid) C "this is private" hidden_private >TUINVISIBLE > Local C "this is local" trythis >TUVISIBLE Local shouldbehidden>So a list memory like (prefix for parameters) should find the original variables and list them instead of the current procedure name if by ref, or the procedure name if by value... Interesting. Not sure if this would work the same in a form and all possible scenarios (within execscript, code called from a menu clause like skipfor, stored procedure, function call within a sql statement etc etc), but may be worth investigating.