Beruflich Dokumente
Kultur Dokumente
End If
End Sub
CLASE PERSONA
FORMULARIO
id = per.GetId
nom = per.GetNombre
apell = per.GetApellido
corr = per.GetCorreo
MessageBox.Show("Los datos almacenados son:" & id & " " & nom & " " & apell & " " & corr)
End Sub
per.SetId(CInt(txtcodigo.Text))
per.SetNombre(txtNombre.Text)
per.SetApellido(txtApellido.Text)
per.SetCorreo(txtCorreo.Text)
id = per.GetId
nom = per.GetNombre
apell = per.GetApellido
corr = per.GetCorreo
MessageBox.Show("Los datos almacenados son:" & id & " " & nom & " " & apell & " " & corr)
End Sub
per.SetId(8)
per.SetNombre("Tania")
per.SetApellido("Rodriguez")
per.SetCorreo("tania@gmail.com")
id = per.GetId
nom = per.GetNombre
apell = per.GetApellido
corr = per.GetCorreo
MessageBox.Show("Los datos almacenados son:" & id & " " & nom & " " & apell & " " & corr)
End Sub
End Class
Else
MessageBox.Show("Error")
End If
End If
Next
mostrar()
Else
MessageBox.Show("Cancelado")
mostrar()
End If
End Sub
If cmd.ExecuteNonQuery Then
Return True
Else
Return False
End If
desconectar()
End Function
CLASE FORMULARIO
End If
End Sub
CLASE CONECCION
Imports System.Data.OleDb
Public Class coneccion
Protected cnn As OleDb.OleDbConnection
Dim coneccionstring As String
Protected Function conectar()
coneccionstring = "Provider=Microsoft.ACE.OLEDB.12.0;" & "Data Source=" & "academico.accdb" & ";" & "Persist
Security Info=False"
cnn = New OleDbConnection(coneccionstring)
cnn.Open()
Return True
End Function
Protected Function desconectar()
If cnn.State.Equals(ConnectionState.Open) Then
cnn.Close()
Return True
Else
Return False
End If
End Function
End Class
Imports System.Data.OleDb
Public Class ServicioEstudiante
Inherits coneccion
End Function
End Class
CLASE ESTUDIANTE
End Class
CLASE FORMULARIO
End Class