DESPLAZAMIENTO CON STREAMREADER
Publicado por carlos velazco (2 intervenciones) el 26/10/2007 17:40:14
HOLA ESPERO QUE ALGUINE ME PUEDA AYUDAR, TENGO UNA APLICACION EN VB NET 2003 Y ME HAN PEDIDO UN FORMULARIO DE MANTENIMIENTO DONDE SE ALMACENEN LOS DATOS EN UN ARCHIVO .TXT , TENGO YA LA MAYYORIA DE LOS BOTONES COMO GUARDAR, MODIFICAR, ELIMINAR PRIMER REGSITRO Y ULTIMO REGISTRO, MI PROBLEMA ES EL SIGUIENTE :
ME FALTA LOS BOTONES SIGUIENTE Y ANTERIOR: TENGO ESTE CODIGO NO SE SI ALGUIEN ME PUDIERA AYUDAR AL RESPECTO:
ESTE CODIGO ES DEL BOTON SIGUIENTE PERO ME FALTA ALGO POR QUE NO ME }
FUNCIONA
Dim sr As New StreamReader("c:\producto.txt")
posicion = posicion + 1
For i = 0 To sr.Peek
Dim arreglo() As String
arreglo = Split(sr.ReadLine, ",")
posicion = posicion + 1
If posicion >= contador Then
MsgBox("posicion" & " " & posicion)
'MsgBox("contador" & " " & contador)
MsgBox(arreglo(0))
contador += 1
'Exit Sub
Else
MsgBox("llegastes al final")
End If
Next i
ME FALTA LOS BOTONES SIGUIENTE Y ANTERIOR: TENGO ESTE CODIGO NO SE SI ALGUIEN ME PUDIERA AYUDAR AL RESPECTO:
ESTE CODIGO ES DEL BOTON SIGUIENTE PERO ME FALTA ALGO POR QUE NO ME }
FUNCIONA
Dim sr As New StreamReader("c:\producto.txt")
posicion = posicion + 1
For i = 0 To sr.Peek
Dim arreglo() As String
arreglo = Split(sr.ReadLine, ",")
posicion = posicion + 1
If posicion >= contador Then
MsgBox("posicion" & " " & posicion)
'MsgBox("contador" & " " & contador)
MsgBox(arreglo(0))
contador += 1
'Exit Sub
Else
MsgBox("llegastes al final")
End If
Next i
Valora esta pregunta


0