>Proc1 passes variable1 to proc2 as parameter by value. Variable1 is declared public in main. Proc2 calls many other procs. One of those procs changes the value of variable1. Shortly after I (think it is when I actually return to proc2), get a VFP error messagebox "variable1 not found". If i go into the debugger, variable1 is no longer declared. What is up with that? Thought since the variable1 is passed by value that proc2 would have a copy and would not care if variable1 is then changed, but obviously I am wrong.
>
>Are my assumptions correct, anyone have any experiences with this?
>
>Thanks - Brenda
Brenda,
As long as call by value you're right. Might it be you're calling ... with Variable1 thus variable is passed by reference ?
Cetin