yoman64
Messages postés962Date d'inscriptionsamedi 19 janvier 2002StatutMembreDernière intervention 2 août 2010
-
6 juin 2002 à 17:58
c00ol
Messages postés40Date d'inscriptiondimanche 22 décembre 2002StatutMembreDernière intervention 9 septembre 2007
-
27 nov. 2003 à 19:05
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
c00ol
Messages postés40Date d'inscriptiondimanche 22 décembre 2002StatutMembreDernière intervention 9 septembre 2007 27 nov. 2003 à 19:05
Ouech c geniale kan on y pense GG c tou cour et sa fonctionne;) bien jouer mec ++
cs_thebigbang
Messages postés196Date d'inscriptionvendredi 21 décembre 2001StatutMembreDernière intervention25 juillet 2006 7 juin 2002 à 22:33
pour ceux qui veulent un générateur infini de numéros de cartes bancaires, mailez-moi à bigbang44@free.fr et merci de mettre "cbgen" dans le sujet
A++
bigbang
bigbang44@free.fr
apxa
Messages postés188Date d'inscriptionmercredi 15 mai 2002StatutMembreDernière intervention25 avril 2009 7 juin 2002 à 10:23
tiens voila une maniere plus courte pour t'a verification :)
/** POUR VB .NET **/
Private Function verifcode(ByVal numCB As String) As Boolean
Dim result As Boolean
result = False
If numCB.Length = 16 Then
Dim nb1 As Integer
Dim nb2 As Integer
Dim tmp As Integer
nb1 = 0
nb2 = 0
For cnt = 1 To 16
tmp = CInt(Val(Mid$(numCB, cnt, 1)))
If ((cnt - 1) Mod 2) = 0 Then
If (tmp * 2) > 9 Then
nb1 = nb1 + 1 + ((tmp * 2) - 10)
Else
nb1 = nb1 + (tmp * 2)
End If
Else
nb2 = nb2 + tmp
End If
Next cnt
If Not ((nb1 + nb2) 0) And ((nb1 + nb2) Mod 10) 0 Then
result = True
End If
Catch e As Exception
End Try
End If
verifcode = result
End Function
/** POUR VB 6 **/
Private Function verifcode(ByVal numCB As String) As Boolean
Dim result As Boolean
result = False
If Len(numCB) = 16 Then
Dim nb1 As Integer
Dim nb2 As Integer
Dim tmp As Integer
nb1 = 0
nb2 = 0
For cnt = 1 To 16
tmp = CInt(Val(Mid$(numCB, cnt, 1)))
If ((cnt - 1) Mod 2) = 0 Then
If (tmp * 2) > 9 Then
nb1 = nb1 + 1 + ((tmp * 2) - 10)
Else
nb1 = nb1 + (tmp * 2)
End If
Else
nb2 = nb2 + tmp
End If
Next cnt
If Not ((nb1 + nb2) 0) And ((nb1 + nb2) Mod 10) 0 Then
result = True
End If
End If
verifcode = result
End Function
NeoFO
Messages postés30Date d'inscriptionmardi 17 octobre 2000StatutMembreDernière intervention18 juin 2002 7 juin 2002 à 08:48
Bonne idée, je n'y avais pas pensé.
Merci
Robinwood01
Messages postés153Date d'inscriptionjeudi 25 avril 2002StatutMembreDernière intervention 3 juillet 2014 7 juin 2002 à 08:01
Pas mal du tout ... Mais change ca :
Private Sub Text1_Change()
If Len(Text1.Text) = 4 Then Text2.SetFocus
End Sub
Private Sub Text2_Change()
If Len(Text2.Text) = 4 Then Text3.SetFocus
If Len(Text2.Text) = 0 Then Text1.SetFocus
End Sub
Private Sub Text3_Change()
If Len(Text3.Text) = 4 Then Text4.SetFocus
If Len(Text3.Text) = 0 Then Text2.SetFocus
End Sub
Private Sub Text4_Change()
If Len(Text4.Text) = 0 Then Text3.SetFocus
End Sub
Pour que lorsque l'on c'est trompé on ne sois pas obligé de remprendre la souris ou de faire alt + tab.
NeoFO
Messages postés30Date d'inscriptionmardi 17 octobre 2000StatutMembreDernière intervention18 juin 2002 6 juin 2002 à 18:02
Sa sert pour les commerçant (hôtel apr exemple ) qui recoivent des numeros de carte bancaire par téléphones et il faut verifier si ils sont correct.
Je pense avoir répondu à ta question meme si ça n'en n'était pas une.
yoman64
Messages postés962Date d'inscriptionsamedi 19 janvier 2002StatutMembreDernière intervention 2 août 20102 6 juin 2002 à 17:58
Sa sert a koi rien de plus inutile pour un prog vb ptete bon pour une page dhtml
27 nov. 2003 à 19:05
7 juin 2002 à 22:33
A++
bigbang
bigbang44@free.fr
7 juin 2002 à 10:23
/** POUR VB .NET **/
Private Function verifcode(ByVal numCB As String) As Boolean
Dim result As Boolean
result = False
If numCB.Length = 16 Then
Dim nb1 As Integer
Dim nb2 As Integer
Dim tmp As Integer
nb1 = 0
nb2 = 0
For cnt = 1 To 16
tmp = CInt(Val(Mid$(numCB, cnt, 1)))
If ((cnt - 1) Mod 2) = 0 Then
If (tmp * 2) > 9 Then
nb1 = nb1 + 1 + ((tmp * 2) - 10)
Else
nb1 = nb1 + (tmp * 2)
End If
Else
nb2 = nb2 + tmp
End If
Next cnt
If Not ((nb1 + nb2) 0) And ((nb1 + nb2) Mod 10) 0 Then
result = True
End If
Catch e As Exception
End Try
End If
verifcode = result
End Function
/** POUR VB 6 **/
Private Function verifcode(ByVal numCB As String) As Boolean
Dim result As Boolean
result = False
If Len(numCB) = 16 Then
Dim nb1 As Integer
Dim nb2 As Integer
Dim tmp As Integer
nb1 = 0
nb2 = 0
For cnt = 1 To 16
tmp = CInt(Val(Mid$(numCB, cnt, 1)))
If ((cnt - 1) Mod 2) = 0 Then
If (tmp * 2) > 9 Then
nb1 = nb1 + 1 + ((tmp * 2) - 10)
Else
nb1 = nb1 + (tmp * 2)
End If
Else
nb2 = nb2 + tmp
End If
Next cnt
If Not ((nb1 + nb2) 0) And ((nb1 + nb2) Mod 10) 0 Then
result = True
End If
End If
verifcode = result
End Function
7 juin 2002 à 08:48
Merci
7 juin 2002 à 08:01
Private Sub Text1_Change()
If Len(Text1.Text) = 4 Then Text2.SetFocus
End Sub
Private Sub Text2_Change()
If Len(Text2.Text) = 4 Then Text3.SetFocus
If Len(Text2.Text) = 0 Then Text1.SetFocus
End Sub
Private Sub Text3_Change()
If Len(Text3.Text) = 4 Then Text4.SetFocus
If Len(Text3.Text) = 0 Then Text2.SetFocus
End Sub
Private Sub Text4_Change()
If Len(Text4.Text) = 0 Then Text3.SetFocus
End Sub
Pour que lorsque l'on c'est trompé on ne sois pas obligé de remprendre la souris ou de faire alt + tab.
http://www.robisoft.fr.st (Prog SMS, JPG, Install)
6 juin 2002 à 18:02
Je pense avoir répondu à ta question meme si ça n'en n'était pas une.
6 juin 2002 à 17:58