We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

VB6 - Resource with object passing to procedures

When you declare a procedure and pass an object to it, e.g. Public Sub MakeVisible(item as Object) item.visible = true end sub How does VB handle the resource? when you call the procedure Call MakeVisible(Button1) Call MakeCisible(Form1) Does it make a copy of the object and pass to the procedure, or does the ByRef default actually just pass a refernce? Its the passing a whole copy of the object that I am worried about if it does do that.

Live Chat Icon For mobile
Up arrow icon