B
B.S. van Veen
Is there another easier way to convert a string to a sqldbtype than using a select case, as in:
Namespace ADOHelper
Public Class sqldbtype
Public Shared Function Convert(ByVal type As String) As System.Data.SqlDbType
Select Case type
Case "int"
Return System.Data.SqlDbType.Int
Case "NVarChar"
Return System.Data.SqlDbType.NVarChar
Case "VarChar"
Return System.Data.SqlDbType.VarChar
Etc .........
Namespace ADOHelper
Public Class sqldbtype
Public Shared Function Convert(ByVal type As String) As System.Data.SqlDbType
Select Case type
Case "int"
Return System.Data.SqlDbType.Int
Case "NVarChar"
Return System.Data.SqlDbType.NVarChar
Case "VarChar"
Return System.Data.SqlDbType.VarChar
Etc .........