VisuaL BasiC

Dim counter As Integer

Private Sub mnsherly_Click()
Form20.Show
End Sub

Private Sub Timer1_Timer()
Dim Kalimat As String
Kalimat = “sherly teguh marfalinda S1 sistem informsi VisuaL basic”
counter = counter + 1
DoEvents
Label1.Caption = TulisJalan(counter, Kalimat, 30)
End Sub

Public Function TulisJalan(hitung As Integer, strKalimat As String, _
Panjang As Integer)
If hitung = Len(strKalimat) + Panjang Then
hitung = 0
ElseIf hitung > Len(strKalimat) Then
TulisJalan = strKalimat & Space(hitung – Len(strKalimat))
Else
TulisJalan = Mid(strKalimat, 1, hitung)
End If
End Function

Private Sub mndatapembeli_Click()
Form3.Show
End Sub

Private Sub mnrestaurant_Click()
Form2.Show
End Sub


Private Sub Combo1_Click()
If Combo1.Text = "MIE AYAM" Then
Text1.Text = "5000"
ElseIf Combo1.Text = "AYAM BAKAR" Then
Text1.Text = "12000"
ElseIf Combo1.Text = "NASI GORENG" Then
Text1.Text = "5000"
ElseIf Combo1.Text = "BAKSO" Then
Text1.Text = "7000"
Else: Combo1.Text = "NASI RAMES"
Text1.Text = "5000"
End If
End Sub

Private Sub Form_Load()
Combo1.AddItem "MIE AYAM"
Combo1.AddItem "AYAM BAKAR"
Combo1.AddItem "NASI GORENG"
Combo1.AddItem "BAKSO"
Combo1.AddItem "NASI RAMES"
Combo2.AddItem "JUICE LEMON"
Combo2.AddItem "TEH MANIS"
Combo2.AddItem "FANTA"
End Sub


PrivatSub Combo2_Click()
If Combo2.Text = "JUICE LEMON" Then
Text2.Text = "5000"
ElseIf Combo1.Text = "TEH MANIS" Then
Text2.Text = "2000"
Else: Combo2.Text = "FANTA"
Text2.Text = "5000"
End If
End Sub


Private Sub Command1_Click()
Data1.Recordset.AddNew

End Sub

Private Sub Command2_Click()
Data1.Recordset.Update

End Sub

Private Sub Command3_Click()
Data1.Recordset.Edit

End Sub

Private Sub Command4_Click()
Data1.Recordset.Delete


End Sub

Private Sub Command5_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

Private Sub Command6_Click()
Unload Me
End Sub

About sherlytml

cuek, jutek, tp peduli

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: