Archives for the month of: December, 2013

NAMA : Ida Riantika
NPM : 13100058
Kelas : Blogger 2

Aplikasi golongan dan Gaji
IDA GAJI
Private Sub Command1_Click()
Dim NIK As String
NIK = Mid(Text11.Text, 5, 1)
If NIK = “A” Then
Text1.Text = “A”
Text5.Text = “MANAJER”
Text7.Text = “4000000”
Text8.Text = “1025000”
ElseIf NIK = “B” Then
Text1.Text = “B”
Text5.Text = “KA. SEKSI”
Text7.Text = “3500000”
Text8.Text = “975000”
ElseIf NIK = “C” Then
Text1.Text = “C”
Text5.Text = “STAFF”
Text7.Text = “3000000”
Text8.Text = “925000”
End If
Text4.Text = Left(Text11.Text, 4)
NIK = Mid(Text11.Text, 7, 1)
If NIK = “S” Then
Text2.Text = “S”
Text3.Text = “SINGLE”
ElseIf NIK = “M” Then
Text2.Text = “M”
Text3.Text = “MENIKAH”
ElseIf NIK = “J” Then
Text2.Text = “J”
Text3.Text = “JANDA”
ElseIf NIK = “D” Then
Text2.Text = “D”
Text3.Text = “DUDA”
End If
Text6.Text = Right(Text11.Text, 3)
Text9.Text = Val(Text7.Text) + Val(Text8.Text)

End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Text9.Text = “”
Text10.Text = “”
Text11.Text = “”
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Text9.Text = “”
Text10.Text = “”
Text11.Text = “”
Text1.SetFocus
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Text10_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text11.SetFocus
End If
End Sub

APLIKASI PENJUALAN TIKET KERETA API
IDA KERETA
Private Sub cmdkeluar_Click()
Unload Me
End Sub

Private Sub cmdlagi_Click()
txtkt.Text = “”
txtht.Text = “”
txtjk.Text = “”
txtjb.Text = “”
txtjt.Text = “”
txttp.Text = “”
txtkt.SetFocus

End Sub

Private Sub cmdproses_Click()
Dim KODE As String
KODE = Left(txtkt.Text, 3)
If KODE = “BIM” Then
txtht = “50000”
txtjk = “BIMA”
txtjb = “16.00”
ElseIf KODE = “EKO” Then
txtht = “35000”
txtjk = “EKONOMI”
txtjb = “19.00”
ElseIf KODE = “EKO” Then
txtht = “35000”
txtjk = “EKONOMI”
txtjb = “19.00”
ElseIf KODE = “MUT” Then
txtht = “23000”
txtjk = “MUTIARA”
txtjb = “17.00”
ElseIf KODE = “SEN” Then
txtht = “15.000”
txtjk = “SENJA”
txtjb = “20.00”
End If
txtjt.SetFocus
End Sub

Private Sub txtjt_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txttp.Text = Val(txtht.Text) * Val(txtjt.Text)
End If
End Sub

Nama : Ida Riantika
NPM : 13100058

Aplikasi Font Style
IDA2
Private Sub Check1_Click()
If Check1.Value = 1 Then
Label1.FontBold = True

Else
Label1.FontBold = False
End If
End Sub

Private Sub Check2_Click()
If Check2.Value = 1 Then
Label1.FontItalic = True

Else
Label1.FontItalic = False
End If
End Sub

Private Sub Command1_Click()
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Option1_Click()
Label1.ForeColor = vbRed
End Sub

Private Sub Option2_Click()
Label1.ForeColor = vbBlue
End Sub

APLIKASI PERHITUNGAN GAJI
IDA3
Private Sub Combo1_CLICK()
Select Case Combo1.Text
Case Is = “I”
Text1.Text = “2500000”
Text2.Text = “1000000”
Text3.Text = “500000”
Text5.Text = (Val(Text1.Text) + Val(Text2.Text) – Val(Text3.Text)) * 0.1
Text6.Text = Val(Text1.Text) + Val(Text2.Text) – Val(Text3.Text) – Val(Text5.Text)
Case Is = “II”
Text1.Text = “3000000”
Text2.Text = “1500000”
Text3.Text = “750000”
Text5.Text = (Val(Text1.Text) + Val(Text2.Text) – Val(Text3.Text)) * 0.1
Text6.Text = Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text) + Val(Text5.Text)
Case Is = “III”
Text1.Text = “4000000”
Text2.Text = “1750000”
Text3.Text = “1000000”
Text5.Text = (Val(Text1.Text) + Val(Text2.Text) – Val(Text3.Text)) * 0.1
Text6.Text = Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text) + Val(Text5.Text)
End Select
End Sub

Private Sub Command1_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text1.SetFocus
End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Combo1.AddItem “I”
Combo1.AddItem “II”
Combo1.AddItem “III”

End Sub

Aplikasi Pendataan Jurusan
IDA4
Private Sub Command1_Click()
Dim a As String
Text5.Text = “20” & Left(Text2.Text, 2)
Text6.Text = Right(Text2.Text, 3)
a = Mid(Text2.Text, 3, 1)
If a = “1” Then
Text3.Text = “Sistem Informasi”
Text4.Text = “Strata Satu”
ElseIf a = “2” Then
Text3.Text = “Manajemen Informatika”
Text4.Text = “Diploma Tiga”
End If

End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
TEXT7.SetFocus
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

ENTRI PENJUALAN KOMPUTER

IDA1
Private Sub Combo1_Click()
Select Case Combo1.Text
Case “P205”
Text1.Text = “Pentium II 500 Mega Hz”
Text2.Text = “1500000”
Case “P308”
Text1.Text = “Pentium III 800 Mega Hz”
Text2.Text = “2100000”
Case “P310”
Text1.Text = “Pentium III 1.0 Giga Hz”
Text2.Text = “3500000”
Case “P415”
Text1.Text = “Pentium IV 1.5 Giga Hz”
Text2.Text = “4000000”
Case “P417”
Text1.Text = “Pentium IV 1.7 Giga Hz”
Text2.Text = “4200000”
Case “P310”
Text1.Text = “Pentium IV 1.9 Giga Hz”
Text2.Text = “5500000”
End Select
End Sub

Private Sub Command1_Click()
Text4.Text = Val(Text2.Text) * Val(Text3.Text)
Select Case Text4.Text
Case Is > “30000000”
Text5.Text = Val(Text4.Text) * 0.15
Case Is > “25000000”
Text5.Text = Val(Text4.Text) * 0.1
Case Is > “20000000”
Text5.Text = Val(Text4.Text) * 0.05
Case Is > “15000000”
Text5.Text = Val(Text4.Text) * 0.02
End Select
Text6.Text = Val(Text4.Text) – Val(Text5.Text)

End Sub

Private Sub Command2_Click()
Combo1.Text = “”
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Combo1.SetFocus

End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Combo1.AddItem “P205”
Combo1.AddItem “P308”
Combo1.AddItem “P310”
Combo1.AddItem “P415”
Combo1.AddItem “P417”
Combo1.AddItem “P419”
End Sub