fai così:
fai un nuovo progetto:
interfaccia grafica:
Tre caselle di testo
Un command1 con proprietà caption = salva
Un command1 con proprietà caption = leggi
Un command1 con proprietà caption = resetta
e incollate questo codice:
'CODE---------------taglia da quì---------------
Dim a$, b$, c$
Private Sub Command1_Click()
a$ = Text1.Text
b$ = Text2.Text
c$ = Text3.Text
Open "MioFile.txt" For Output As #1
Print #1, a$
Print #1, b$
Print #1, c$
Close #1
End Sub
Private Sub Command2_Click()
Open "MioFile.txt" For Input As #1
Input #1, a$
Input #1, b$
Input #1, c$
Close #1
Text1.Text = a$
Text2.Text = b$
Text3.Text = c$
End Sub
Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub
'END-------------fino a quì------------------
di okayit60@katamail.com
fatemi sapere.......

Rispondi quotando