Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub
Private Sub Command1_Click() Dim msg As String Dim nb As Long msg = Text1.Text cpt = Len(msg) For nb = 1 To cpt Dim chaine Dim i Dim result Dim FINALBINARY, INVERSION, x, binary, j, k msg = Text1.Text cpt2 = Len(msg) cpt2 = cpt2 + 1 chaine = Asc(cpt2) For i = 1 To 8 x = (chaine) / 2 If Int(x) = x Then result = 0 Else result = 1 End If binary = binary & result chaine = Int(x) Next i For j = 1 To 8 k = 8 - j INVERSION = Mid(binary, k + 1, 1) FINALBINARY = FINALBINARY & INVERSION Next j noter = FINALBINARY Next nb Text2.Text = noter End Sub