Private Sub cmdReservation_Click() Dim i As Integer Open App.Path & "\Reserv.txt" For Output As #1 For i = 0 to 47 Write #1, Val(Form1.lblPlace(i).Caption), Form1.txtNom(i).Text, Val(Form1.txtTel(i).Text) Next Close #1 End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionOption Explicit Dim Nom() As String Dim Tel() As String Private Sub Form_Load() ReDim Nom(47) ReDim Tel(47) End Sub Private Sub Lblsiege_Click(Index As Integer) Form2.Show 1 Nom(Index) = Form2.txtNom Tel(Index) = Form2.txtTel End Sub Private Sub Form_Unload(Cancel As Integer) Dim i As Integer Open App.Path & "\Reserv.txt" For Output As #1 For i = 0 To 47 Print #1, Val(lblsiege(i).Caption), Nom(i), Val(Tel(i)) Next Close #1 End Sub
Option Explicit Private Sub cmdReservation_Click() Me.Hide End Sub