Nombre: Rosalía Lara Santos Grupo: 606 Especialidad: Informática Ing. Agustín Hernández Delgado Aquí se encuentra un avance correspondido a los botones Buscar y Grabar Código de Buscar y Grabar Dim i As Integer Dim bandera As Boolean bandera = True Dim tamano As Integer RegistroBindingSource.MoveFirst() tamano = RegistroBindingSource.Count() Dim res As Boolean Dim a As String Dim b As String i = 1 a = UCase(Trim(RFCTextBox.Text)) b = UCase(Trim(TextBox1.Text))
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Nombre: Rosalía Lara Santos
Grupo: 606
Especialidad: Informática
Ing. Agustín Hernández Delgado
Aquí se encuentra un avance correspondido a los botones Buscar y Grabar
Código de Buscar y Grabar
Dim i As Integer Dim bandera As Boolean bandera = True Dim tamano As Integer RegistroBindingSource.MoveFirst() tamano = RegistroBindingSource.Count() Dim res As Boolean Dim a As String Dim b As String i = 1
a = UCase(Trim(RFCTextBox.Text)) b = UCase(Trim(TextBox1.Text))
If (tamano = 0) Then MsgBox("Tabla Vacia") Else RegistroBindingSource.MoveFirst() ' a = UCase(Trim(RFCTextBox.Text)) Do res = a Like b If (res = True) Then bandera = False Else RegistroBindingSource.MoveNext()
a = UCase(Trim(RFCTextBox.Text)) i = i + 1 End If Loop While (bandera = True And i <= tamano)
End If If (bandera = True) Then IdTextBox.Enabled = False RFCTextBox.Enabled = False Nombre_de_la_empresaTextBox.Enabled = False DireccionTextBox.Enabled = False LocalidadTextBox.Enabled = False ProvinciaTextBox.Enabled = False Codigo_postalTextBox.Enabled = False TelefonoTextBox.Enabled = False Pagina_webTextBox.Enabled = False