Sunteți pe pagina 1din 3

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

Nombre de la Materia: Programacin Bsica Instructor: Ing. Sergio Gonzlez Prez Alumno: Yolanda Mireles Bentez Plantel: Grupo: Fecha de aplicacin : Conalep Jurez I 5102 / / 2011

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

/ / / /

Yo0landa Firma del Alumnos Firma del Instructor

Practica #20 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\controlescolar1.accdb") Dim fila As Integer = 0 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 el dia + TextBox1.Text + " de enero de " + TextBox3.Text()) Case 2 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de febrero de " + TextBox3.Text()) Case 3 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de Marzo de " + TextBox3.Text()) Case 4 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de abril de " + TextBox3.Text()) Case 5 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de mayo de " + TextBox3.Text()) Case 6 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de junio de " + TextBox3.Text()) Case 7 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de julio de " + TextBox3.Text()) Case 8 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de agosto de " + TextBox3.Text()) Case 9 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de septiembre de " + TextBox3.Text()) Case 10 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de octubre de " + TextBox3.Text()) Case 11 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de noviembre de " + TextBox3.Text()) Case 12 MsgBox("El maestro " + dt.Rows(fila)("Nombre") + " nacio el dia + TextBox1.Text + " de diciembre 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() 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

S-ar putea să vă placă și