arcon 51 Light Poster

because it still works and there are many people who use it, thank you

arcon 51 Light Poster

Sorry but you have not given a solution to the issue, because I see that here in this forum people continue to ask about vb6.0

rproffitt commented: You didn't supply the code in the clear. ZIP file? I won't open it and then the problems noted above. +17
arcon 51 Light Poster

the issue to edit is on line 89 to 142

  'Edit

     Dim item As String
      Dim st As String
    Dim posicion As Integer
    Dim i As Integer
    Dim encontrado As Boolean
    Dim Dire As String



    If List1.ListIndex > -1 Then
        List1.RemoveItem List1.ListIndex
    End If



    item = Text1.Text & vbTab & txtNombre.Text & vbTab & txtImagen.Text
        List1.List(List1.ListIndex) = item


    st = App.Path & "\Datos.txt"
    FileFree = FreeFile
      Open st For Random As FileFree Len = Len(Datos)



    Dire = App.Path & "\imagenes\" & txtImagen

    For i = 1 To LOF(FileFree) \ Len(Datos)
    Get #FileFree, i, Datos
    If Datos.id = Text2.Text Then
    encontrado = True
    posicion = i
    Exit For
    End If
    Next i


    With Datos
            .id = Text1.Text
           .nombre = txtNombre.Text
           .imagen = txtImagen.Text

       End With
    Put #FileFree, List1.ListIndex + 2, Datos


    SavePicture Image1.Picture, Dire


     Close #FileFree
    End Sub


The issue is that it does not save the modified data






 With Datos
            .id = Text1.Text
           .nombre = txtNombre.Text
           .imagen = txtImagen.Text

       End With
    Put #FileFree, List1.ListIndex + 2, Datos

for me it is not dead vb 6.0 thanks

rproffitt commented: With so few having VB6 now, you need to move to a current release. Help will be hard to find. +17
arcon 51 Light Poster

What I'm doing is trying to read the id in text2.text and the command8_click button and list by id in list1.
now list all together

rproffitt commented: That's fine but I can't load up your project. Few others can so by not posting the relevant code in the clear with your assessment, you see the issue? +17