Thanks for all the info Hank & I agree totally with keeping all scope as local as possible as far as possible.
Just a note on your comment about 'proc(a) resulting in a private variable in that function' - I did some tests and it seems not to be the case. If my test below is sound then it looks like 'tcPassedIn1' is local to 'Test1' and not private:
Code:
proc page1_section2_field2_click()
local lcTest
lcTest = "Original String"
Test1(lcTest)
MessageBox(lcTest, 0)
endproc
proc Test1(tcPassedIn1)
tcPassedIn1 = "Var not overwritten"
Test2(tcPassedIn1)
MessageBox(tcPassedIn1, 0)
endproc
proc Test2(tcPassedIn2)
tcPassedIn2 = "Var overwritten"
endproc
Bookmarks