Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionprivate Sub Command1_Click() End Sub Private Sub Command2_Click() End Sub Private Sub Command3_Click() End Sub Private Sub Command_clear_Click() Text_montant.Text = "" Label1_100fb.Caption = "" Label_50fb.Caption = "" Label_20fb.Caption = "" Label_10fb.Caption = "" Label_5fb.Caption = "" Label_2fb.Caption = "" Label_1fb.Caption = "" End Sub Private Sub Command_end_Click() End End Sub Private Sub Command_start_Click() Dim cur_montant As Currency, reste100 As Currency, reste50 As Currency, reste20 As Currency, reste10 As Single, reste5 As Currency, reste2 As Currency, reste1 As Currency, reste50c As Currency, rep1fb As Currency cur_montant = Val(Text_montant) Label1_100fb = cur_montant \ 100 reste100 = cur_montant Mod 100 Label_50fb = reste100 \ 50 reste50 = reste100 Mod 50 Label_20fb = reste50 \ 20 reste20 = reste50 Mod 20 Label_10fb = reste20 \ 10 reste10 = reste20 Mod 10 Label_5fb = reste10 \ 5 reste5 = reste10 Mod 5 Label_2fb = reste5 \ 2 reste2 = reste5 Mod 2 rep1fb = reste2 / 1 Label_1fb = rep1fb reste1 = reste2 - rep1fb Label_rep.Caption = CCur(Format(reste1, "##.##")) Print reste1 'Label_50c = reste1 / 0.5 'reste50c = reste1 Mod 0.5 End Sub Private Sub Form_Load() Label1_titre = "Nombre de Billets et de pièce" & Chr(13) & "Division" & Chr(13) & " Version Franc Belge" End Sub Private Sub Label8_Click() End Sub Private Sub Label_rep_Click() End Sub