You are on page 1of 3

Lista de Cotejo Prctica # 20 Manejo operadores, fechas y estructuras seleccin

Nombre de la Materia: Programacin Bsica Instructor: Ing. Sergio Gonzlez Prez Alumno: CINDY PATRICIA LOPEZ AGUERO Plantel: Grupo: Conalep Jurez I 5102 / octubre / 2011

Fecha de aplicacin : 25

INSTRUCCIONES DE APLICACIN.
Verifique que se encuentren los componentes sealados abajo y marque con una el registro de cumplimiento correspondiente.

DESARROLLO
REGISTRO DE CUMPLIMIENTO

No

Caractersticas a verificar
Inicia el Sistema Gestor de Base de Datos Abre la Base de Datos que ser utilizada Realiza los pasos de la practica Manipula correctamente el SGBD
Almacena en su carpeta las actividades planteadas

OBSERVACIONES

SI
1 2 3 4 5 6

NO

/ / / / / /
REGISTRO DE

Realiza el reporte del resultado del programa.

No

Actividades a desarrollar
Inicializa Lenguaje de Programacin Agrega Formulario Disea los Controles del Formulario Realiza Cdigo para Manejo de Fechas

CUMPLIMIENTO

OBSERVACIONES

SI
1 2 3 4

NO

/ / / /

cindy

Firma del Alumnos

Firma del Instructor

Imports System.Data.OleDb Public Class Form1 Dim dt As New DataTable Dim cn As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Alumnos\Desktop\ControlAlumnos.accdb") Dim fila As Integer = 0 Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Select Case TextBox2.Text Case 1 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio TextBox1.Text + " de enero de " + TextBox3.Text) Case 2 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de febrero de " + TextBox3.Text) Case 3 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de marzo de " + TextBox3.Text) Case 4 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de abril de " + TextBox3.Text) Case 5 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de mayo de " + TextBox3.Text) Case 6 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de junio de " + TextBox3.Text) Case 7 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de julio de " + TextBox3.Text) Case 8 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de agosto de " + TextBox3.Text) Case 9 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de septiembre de" + TextBox3.Text) Case 10 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de octubre de " + TextBox3.Text) Case 11 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de enero de " + TextBox3.Text) Case 12 MsgBox("el maestro " + dt.Rows(fila)("nombre") + "nacio + TextBox1.Text + " de enero de " + TextBox3.Text) End Select End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load cn.Open() Dim consulta As String = "Select * from Maestros" Dim dataAdapter As New OleDbDataAdapter(consulta, cn) dataAdapter.Fill(dt) Actualiza() dataAdapter.Dispose()

el dia" +

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

el dia "

cn.Close() End Sub Public Sub Actualiza() Dim d As Date d = CDate(dt.Rows(fila)("Fechanac")) TextBox1.Text = d.Day Dim m As Date m = CDate(dt.Rows(fila)("Fechanac")) TextBox2.Text = m.Month Dim y As Date y = CDate(dt.Rows(fila)("Fechanac")) TextBox3.Text = y.Year End Sub End Class

You might also like