D
David Wier
I'm trying to convert a VB6 DLL (that someone else wrote) - many lines are
parameters that need converting that have 'System.DBNull.Value' in the
original - - the report says this is an erroneous use of the Null/Isnull .
Here's the code:
If BillCust > 0 Then
Call colParams.Add(objDB.CreateADOParm("@BillCust",
ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
BillCust))
Else
'Error Message --------> 'UPGRADE_WARNING: Use of Null/IsNull() detected.
Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1049"'
Call colParams.Add(objDB.CreateADOParm("@BillCust",
ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
System.DBNull.Value))
End If
How can I change the 'Else' section so it will work in DotNet?
parameters that need converting that have 'System.DBNull.Value' in the
original - - the report says this is an erroneous use of the Null/Isnull .
Here's the code:
If BillCust > 0 Then
Call colParams.Add(objDB.CreateADOParm("@BillCust",
ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
BillCust))
Else
'Error Message --------> 'UPGRADE_WARNING: Use of Null/IsNull() detected.
Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1049"'
Call colParams.Add(objDB.CreateADOParm("@BillCust",
ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput,
System.DBNull.Value))
End If
How can I change the 'Else' section so it will work in DotNet?