C
Chris
Sorry for the newbie question. I'm passing around a database connection
into several forms. Do I use byref or byval for the variable, and why?
To me I should use byref, since I don't want a copy of the connection....
thanks
Chris
Public Sub New(ByVal MySqlConn As MySqlConnection)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Conn = MySqlConn
'Add any initialization after the InitializeComponent() call
End Sub
into several forms. Do I use byref or byval for the variable, and why?
To me I should use byref, since I don't want a copy of the connection....
thanks
Chris
Public Sub New(ByVal MySqlConn As MySqlConnection)
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Conn = MySqlConn
'Add any initialization after the InitializeComponent() call
End Sub