Beruflich Dokumente
Kultur Dokumente
Visual ABM 4ta Parte
Visual ABM 4ta Parte
' verifica que hay datos en el ListView y que hay uno seleccionado
If (LV.ListItems.Count = 0) Then
MsgBox "No hay ningún regisro para editar", vbInformation
Exit Sub
End If
If (LV.SelectedItem Is Nothing) Then
MsgBox "Debe seleccionar previamente un registro para poder editarlo",
vbInformation
Exit Sub
End If
With FrmAM
' obtiene el elemento seleccionado
.lblID = LV.SelectedItem.Text
For i = 1 To 4
.Text1(i).Text = LV.SelectedItem.ListSubItems(i).Text
Next
.CmbSexo = LV.SelectedItem.ListSubItems(5).Text
.lblFecha = LV.SelectedItem.ListSubItems(6).Text
.IdRegistro = LV.SelectedItem.Text
.ACCION = 0
.Show vbModal
End With
End Sub