Sunteți pe pagina 1din 5

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

Nombre de la Materia: Programacin Bsica Instructor: Ing. Sergio Gonzlez Prez Alumno:jair salinas Plantel: Grupo: Fecha de aplicacin : Conalep Jurez I 5102 25 / 10 / 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

/ / / /

Jair salinas Firma del Alumnos Firma del Instructor

ImportsSystem.Data.OleDb PublicClassForm1 DimdtAsNewDataTable DimregistroAsInteger = 0 DimcnAsNewOleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Alumnos\Desktop\Control_Escolar021.accdb") PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal AsSystem.EventArgs) Handles Button1.Click SelectCaseTextBox2.Text() Case 1 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de enero de " + TextBox3.Text()) Case 2 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de febrero de " + TextBox3.Text()) Case 3 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de marzo de " + TextBox3.Text()) Case 4 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de abril de " + TextBox3.Text()) Case 5 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de mayo de " + TextBox3.Text()) Case 6 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de junio de " + TextBox3.Text()) Case 7 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de julio de " + TextBox3.Text()) Case 8 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de agosto de " + TextBox3.Text()) Case 9 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de septiembre de " + TextBox3.Text()) Case 10 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de octubre de " + TextBox3.Text()) Case 11 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de noviembre de " + TextBox3.Text()) Case 12 MsgBox("El maestro " + dt.Rows(registro)("Nombre") + " nacio TextBox1.Text() + " de diciembre de " + TextBox3.Text()) EndSelect EndSub PublicSubactualiza() Dim d AsDate d = CDate(dt.Rows(registro)("Fechanac")) TextBox1.Text() = d.Day Dim m AsDate m = CDate(dt.Rows(registro)("Fechanac")) TextBox2.Text() = m.Month Dim y AsDate y = CDate(dt.Rows(registro)("Fechanac")) TextBox3.Text() = y.Year e

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

el dia " +

EndSub

PrivateSub Form1_Load(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs) HandlesMyBase.Load cn.Open() DimconsultaAsString = "select * from Maestros" DimdataAdapterAsNewOleDbDataAdapter(consulta, cn) dataAdapter.Fill(dt) actualiza() dataAdapter.Dispose() cn.Close() EndSub PrivateSub Button2_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs) Handles Button2.Click Me.Close() EndSub PrivateSub Button3_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs) Handles Button3.Click If (registro> 0 Andregistro<= dt.Rows.Count - 1) Then registro = registro - 1 actualiza() Else MsgBox("Primer Registro Encontrado", MsgBoxStyle.Information, "Mensaje") EndIf

EndSub PrivateSub Button4_Click(ByVal sender AsSystem.Object, ByVal e AsSystem.EventArgs) Handles Button4.Click If (registro>= 0 Andregistro<dt.Rows.Count - 1) Then registro = registro + 1 actualiza() Else MsgBox("Ultimo Registro Encontrado", MsgBoxStyle.Information, "Mensaje") EndIf EndSub EndClass

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