salve.
Riesco a scrivere e rileggere senza problemi in un file 2 textbox. SE aggiungo un combox, non mi funziona bene. Si vede che la sintassi é sbagliata.
Ecco il mio codice
(Chiedo scusa ma non riesco a mettere i Tag)
Private Sub Apri_Click()
On Error Resume Next
CommonDialog1.Filter = "Testo|*.txt"
CommonDialog1.ShowOpen
Call LoadText(CommonDialog1.filename, Text1)
End Sub
Private Sub LoadText(file As String, Text1 As TextBox)
Dim H As Integer
Dim L As String
H = FreeFile
Open file For Input As #H
While Not EOF(H)
Line Input #H, L
Text1.Text = Text1.Text & L & vbCrLf
Line Input #H, L
Text2.Text = Text2.Text & L & vbCrLf
Combo1.text=Combo1.text & L
Wend
Close #1
Public Sub SaveText(file As String, Text1 As TextBox)
Open file For Output As #2
Print #2, Text1.Text
Print #2, Text2.Text
Print #2, Combo1.text
Close #2
Dove sbaglio?
grazie.
pazienza