Avance actividad

205 views
136 views

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
205
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Avance actividad

  1. 1. Guadalupe Lima Pérez Informática 606 Elaboración y Mantenimiento De Sistemas De Información
  2. 2. Guadalupe Lima Pérez Informática 606 Elaboración y Mantenimiento De Sistemas De Información Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click REM consultas Dim i As Integer Dim n As Integer n = ALTASBindingSource.Count() Dim bandera As Boolean bandera = True Dim tamaño As Integer tamaño = ALTASBindingSource.Count() i = 1 If (tamaño = 0) Then MsgBox("tabla vacia") Else Do If (Trim(MATRICULATextBox.Text) = Trim(TextBox1.Text)) Then bandera = False Else ALTASBindingSource.MoveNext()
  3. 3. Guadalupe Lima Pérez Informática 606 Elaboración y Mantenimiento De Sistemas De Información i = i + 1 End If Loop While (bandera = True And i <= tamaño) End If If (bandera = True) Then ID_ALTATextBox.Visible = False ID_ALTATextBox.Enabled = False MATRICULATextBox.Visible = False MATRICULATextBox.Enabled = False NOMBRETextBox.Visible = False NOMBRETextBox.Enabled = False APELLIDOTextBox.Visible = False APELLIDOTextBox.Enabled = False ESPECIALIDADTextBox.Visible = False ESPECIALIDADTextBox.Enabled = False GRUPOTextBox.Visible = False GRUPOTextBox.Enabled = False TURNOTextBox.Visible = False TURNOTextBox.Enabled = False MsgBox("no existen datos") Else ID_ALTATextBox.Enabled = False ID_ALTATextBox.Visible = True MATRICULATextBox.Enabled = False MATRICULATextBox.Visible = True NOMBRETextBox.Enabled = False NOMBRETextBox.Visible = True APELLIDOTextBox.Enabled = False APELLIDOTextBox.Visible = True ESPECIALIDADTextBox.Enabled = False ESPECIALIDADTextBox.Visible = True GRUPOTextBox.Enabled = False GRUPOTextBox.Visible = True TURNOTextBox.Enabled = False TURNOTextBox.Visible = True End If
  4. 4. Guadalupe Lima Pérez Informática 606 Elaboración y Mantenimiento De Sistemas De Información End Sub Private Sub ALTASBindingNavigator_RefreshItems(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub PrintForm() Throw New NotImplementedException End Sub Private Sub MATRICULATextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MATRICULATextBox.TextChanged End Sub Private Sub APELLIDOLabel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click OpenAccess "archivo.txt" for output as #1 grabar = "altas" print #1,grabar grabar = "altas" print #1,grabar close #1 End Sub
  5. 5. Guadalupe Lima Pérez Informática 606 Elaboración y Mantenimiento De Sistemas De Información Private Sub OpenAccess(ByVal p1 As String) Throw New NotImplementedException End Sub End Class

×