1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Private Sub Init(strNomFichier As String)
Dim intPlace As Integer
structReserv.strNom = Space(30)
structReserv.strPrenom = Space(35)
structReserv.strNumTel = Space(10)
Close #1
Open strNomFichier For Random As #1 Len = Len(structReserv)
For intPlace = 1 To 114
Put #1, intPlace, structReserv
If Me.lblPlace(intPlace) >= 1 And Me.lblPlace(intPlace) <= 37 Then
Me.lblPlace(intPlace).BackColor = RGB(141, 16, 95)
ElseIf Me.lblPlace(intPlace) >= 38 And Me.lblPlace(intPlace) <= 70 Then
Me.lblPlace(intPlace).BackColor = RGB(246, 61, 178)
ElseIf Me.lblPlace(intPlace) >= 71 And Me.lblPlace(intPlace) <= 114 Then
Me.lblPlace(intPlace).BackColor = RGB(240, 133, 221)
End If
Me.lblPlace(intPlace).ForeColor = vbYellow
Me.lblPlace(intPlace).Visible = True
Next intPlace
End Sub |
Partager