On Feb 20, 2007, at 8:33 PM, David Glass wrote: > I think I'm having a scoping issue, and would appreciate somebody > verifying what I think is correct behavior. > > If I do something like this: > > dim intNumber as integer > > intNumber = 1 > > subMyMethod(intNumber) > > MsgBox str(intNumber) > > > And subMyMethod looks like this: > Sub > intNumber = intNumber + 10 > End Sub > > Then the MsgBox in the original should display '1', right? > > Changing intNumber inside the method should have no effect on > intNumber in the calling location, right?
Right -- as long as the parameter is not passed by reference to subMyMethod. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
