Public Function insert(ByVal SP_Name As String) As Integer Dim c As DBaccess = New DBaccess Dim a As Integer c.connect() c.cmd = New OdbcCommand(SP_Name, c.con) c.cmd.CommandType = CommandType.StoredProcedure c.cmd.Parameters.AddWithValue("_ID", _ID) c.cmd.Parameters.AddWithValue("_NAME", _NAME) a = c.cmd.ExecuteNonQuery() c.disconnect() If a > 0 Then Return 1 Else Return -1 End If End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)