You shouldn't do that. It breaks encapsulation. Pass the variables as parameters or create a parameter object, store the results, then pass that.
>thanks cetin.
>
>my problem with local is displayed from this quote from MSDN:
>
>"Local variables and variable arrays can be used and modified only within the procedure or function in which they are created, and cannot be accessed by higher- or lower-level programs. Local variables and arrays are released once the procedure or function containing the local variables and arrays completes execution."
>
>it is only available within the program that it is being used. I often need a variable in another program or function and often need the result from a function in more than one program. Can I make local variables available to these programs without declaring them as public?
>
>thanks,
>
>paul
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer