Documente Academic
Documente Profesional
Documente Cultură
Unload Me
End Sub
Private Sub Command2_Click()
If Text1.Text = "" Then
konek_db
Dim SQL As String
Set adoRs = New ADODB.Recordset
SQL = "select * from Urgent_DoNotEdit"
adoRs.Open SQL, Conn, adOpenDynamic, adLockOptimistic
With adoRs
!license = Label3.Caption
.Update
End With
frmUtama.Show
Unload Me
Unload frmLogin
Unload frmAnim
Exit Sub
End If
End Sub
Private Sub Command3_Click()
Call Command4_Click
If Text1.Text = "" And Text3.Text = "" Then
MsgBox "Nomor Register yang anda masukan salah! Contact the author.", vbCrit
ical, "Number Register Is Invalid"
ElseIf Text1.Text = Text4.Text Then
MsgBox "Registrasi Anda Berhasil.......Terima Kasih Telah Meregistrasi Progr
am Ini!!"
Command2.Visible = True
konek_db
Dim SQL As String
Set adoRs = New ADODB.Recordset
SQL = "insert into Urgent_DoNotEdit values('1000000')"
adoRs.Open SQL, Conn, adOpenDynamic, adLockOptimistic
frmUtama.Show
frmUtama.Register.Enabled = False
Unload frmLogin
Unload frmAnim
Unload Me
Else
MsgBox "Nomor Register yang anda masukan salah! Contact the author.", vbCritical
, "Number Register Is Invalid"
Command2.Visible = False
Label3.Visible = False
Label4.Visible = True
Label4.Caption = "Aplikasi Belum di Registrasi"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Exit Sub
End If
End Sub
Private Sub Command4_Click()
Text4.Text = Crypt(Text3.Text)
End Sub
End If
End Sub
Private Sub Text2_Change()
If Text2.Text = "" Then
Command3.Enabled = False
Command2.Enabled = True
Else
Command3.Enabled = False
Command2.Enabled = True
End If
End Sub
Public Function Crypt(ByVal s_text As String)
s_text = Replace(s_text, "0", "11", , , vbBinaryCompare)
s_text = Replace(s_text, "1", "12-", , , vbBinaryCompare)
s_text = Replace(s_text, "2", "13", , , vbBinaryCompare)
s_text = Replace(s_text, "3", "450", , , vbBinaryCompare)
s_text = Replace(s_text, "4", "63", , , vbBinaryCompare)
s_text = Replace(s_text, "5", "350", , , vbBinaryCompare)
s_text = Replace(s_text, "6", "90", , , vbBinaryCompare)
s_text = Replace(s_text, "7", "56-", , , vbBinaryCompare)
s_text = Replace(s_text, "8", "67", , , vbBinaryCompare)
s_text = Replace(s_text, "9", "24-9", , , vbBinaryCompare)
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"q",
"r",
"s",
"t",
"u",
"v",
"w",
"x",
"y",
"z",
"345", , , vbBinaryCompare)
"56", , , vbBinaryCompare)
"234", , , vbBinaryCompare)
"45-", , , vbBinaryCompare)
"436", , , vbBinaryCompare)
"10", , , vbBinaryCompare)
"7-83", , , vbBinaryCompare)
"0-9", , , vbBinaryCompare)
"5634", , , vbBinaryCompare)
"5-1", , , vbBinaryCompare)
"6734", , , vbBinaryCompare)
"94-", , , vbBinaryCompare)
"8-956", , , vbBinaryCompare)
"42", , , vbBinaryCompare)
"42-", , , vbBinaryCompare)
"6767", , , vbBinaryCompare)
"97-", , , vbBinaryCompare)
"56", , , vbBinaryCompare)
"12", , , vbBinaryCompare)
"2-06", , , vbBinaryCompare)
"358", , , vbBinaryCompare)
"38-", , , vbBinaryCompare)
"290-1", , , vbBinaryCompare)
"10-4", , , vbBinaryCompare)
"16-4", , , vbBinaryCompare)
"393-", , , vbBinaryCompare)
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
=
=
=
=
=
=
=
=
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"67-5", , , vbBinaryCompare)
"56", , , vbBinaryCompare)
"56-", , , vbBinaryCompare)
"567-5", , , vbBinaryCompare)
"67-", , , vbBinaryCompare)
"-76", , , vbBinaryCompare)
"7-8", , , vbBinaryCompare)
"-8-30", , , vbBinaryCompare)
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
s_text
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Replace(s_text,
Crypt = s_text
End Function
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"56-90", , , vbBinaryCompare)
"100-1", , , vbBinaryCompare)
"29-6", , , vbBinaryCompare)
"90-5", , , vbBinaryCompare)
"768-3", , , vbBinaryCompare)
"12-90", , , vbBinaryCompare)
"34-4-", , , vbBinaryCompare)
"90-48", , , vbBinaryCompare)
"732", , , vbBinaryCompare)
"75-4", , , vbBinaryCompare)
"23-78", , , vbBinaryCompare)
"56-7-1", , , vbBinaryCompare)
"34-9-0", , , vbBinaryCompare)
"1-1-3", , , vbBinaryCompare)
"-4-67", , , vbBinaryCompare)
"-9-45", , , vbBinaryCompare)
"90-345", , , vbBinaryCompare)
";-895-", , , vbBinaryCompare)