M
martin
Hi,
I am using vb.net and I would like to define one of my function parameters
to have a default value of null (in this case an sqltranaction object)
however I am having a great deal of trouble doing this.
my (incorrect) function declaration is below and I would appreciate somebody
pointing out my error.
Public Function EnterPractice(ByVal strPracticeName As String, ByVal
strUserName As String, ByVal objTran As SqlTransaction = dbnull) As Integer
Also, how would I explicitly pass a null argument to the function.
many thnaks in advance.
martin.
I am using vb.net and I would like to define one of my function parameters
to have a default value of null (in this case an sqltranaction object)
however I am having a great deal of trouble doing this.
my (incorrect) function declaration is below and I would appreciate somebody
pointing out my error.
Public Function EnterPractice(ByVal strPracticeName As String, ByVal
strUserName As String, ByVal objTran As SqlTransaction = dbnull) As Integer
Also, how would I explicitly pass a null argument to the function.
many thnaks in advance.
martin.