Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-21-2013, 06:08 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Visual Basic v
« Previous 1 2 3 4 5 ... 14 Next »

[Tutor] membuat fungsi operator

Home General Computer Multimedia Business Lounge

Pages (2): 1 2 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Tutor membuat fungsi operator
06-25-2012, 04:30 PM (This post was last modified: 06-25-2012 04:40 PM by genta.)
Post: #1
genta Offline
soutboxer
Posts: 962
Joined: Jan 2012
Reputation: 67
membuat fungsi operator
asalmualikum Wr.Wb ....salam logodc

newbie yg suram ini ijin membuat thread lgi ne lngsung aja dah jngan bancak bekicot ngakak

pertama kita atur dulu properties nya hmm

ini memakai
Code:
6 label
4 frame
1 combobox
3 textbox
16 commandbutton


Quote:text1
name = txt nil 1
================================================
text 2
name = txt nil 2
================================================
text3
name = txthasil

Code:
commandbutton1
caption = +
name   = cmdtambah
==============================================

commandbutton2
caption = -
name   = cmdkurang
==============================================

commandbutton3
caption = X
name   = cmdkali
==============================================

commandbutton4
caption = /
name   = cmdbagi
==============================================

commandbutton5
caption = mod
name   = cmdmod
==============================================

commandbutton6
caption =  =
name   = cmd1
==============================================

commandbutton7
caption = <
name   = cmd2
==============================================

commandbutton8
caption = >
name   = cmd3
==============================================

commandbutton9
caption = <=
name   = cmd4
==============================================

commandbutton10
caption = =>
name   = cmd5
==============================================

commandbutton11
caption = <>
name   = cmd6
==============================================

commandbutton12
caption = not
name   = cmdnot
==============================================

commmandbutton13
caption = and
name   = cmdand
==============================================

commandbutton14
caption = or
name   = cmdor
==============================================

commandbutton15
caption = ulangi
name = ulang
==============================================

commandbutton16
caption = keluar
name   = cmdkeluar
==============================================

[code]
combobox1
list = true
        false

kurang lebihy akan jadi seperti ini
[Image: di-PYAX.jpg]
dan sekarng masukan kodingy

Code:
Private Sub cmd1_Click()
txthasil = Val(txtnil1.Text) = Val(txtnil2.Text)
End Sub

Private Sub cmd2_Click()
txthasil = Val(txtnil1.Text) < Val(txtnil2.Text)
End Sub

Private Sub cmd3_Click()
txthasil = Val(txtnil1.Text) > Val(txtnil2.Text)
End Sub

Private Sub cmd4_Click()
txthasil = Val(txtnil1.Text) >= Val(txtnil2.Text)
End Sub

Private Sub cmd5_Click()
txthasil = Val(txtnil1.Text) >= Val(txtnil2.Text)
End Sub

Private Sub cmd6_Click()
txthasil = Val(txtnil1.Text) <> Val(txtnil2.Text)
End Sub

Private Sub cmdand_Click()
If txtnil1 = "true" And txtnil2 = "true" Then
    txthasil = "true"
ElseIf txtnil1 = "true" And txtnil2 = "false" Then
    txthasil = "false"
ElseIf txtnil1 = "true" And txtnil2 = "false" Then
    txthasil = "false"
ElseIf txtnil1 = "false" And txtnil2 = "false" Then
    txthasil = "false"
ElseIf txtnil1 = "false" And txtnil2 = "true" Then
    txthasil = "false"
Else
    txthasil = "false"
End If
End Sub

Private Sub cmdbagi_Click()
txthasil = Val(txtnil1.Text) / Val(txtnil2.Text)
End Sub
Private Sub cmdkali_Click()
txthasil = Val(txtnil1.Text) * Val(txtnil2.Text)
End Sub

Private Sub cmdkeluar_Click()
End
End Sub

Private Sub cmdkurang_Click()
txthasil = Val(txtnil1.Text) - Val(txtnil2.Text)
End Sub

Private Sub cmdkeluar_Click()
txtnil1.Text = ""
txtnil2.Text = ""
txthasil = ""
txtnot = ""
txtnil1.SetFocus
End Sub

Private Sub cmdmod_Click()
txthasil = Val(txtnil1.Text) Mod Val(txtnil2.Text)
End Sub

Private Sub cmdnot_Click()
If cmdnot = True Then
txtnot = Not True
Else
txtnol = Not False
End If
End Sub

Private Sub cmdor_Click()
If txtnil1 = "true" Or txtnil2 = "true" Then
    txthasil = "true"
ElseIf txtnil1 = "true" Or txtnil2 = "false" Then
    txthasil = "true"
ElseIf txtnil1 = "false" Or txtnil2 = "true" Then
    txthasil = "true"
Else
    txthasil = "false"
End If
End Sub

Private Sub cmdtambah_Click()
txthasil = Val(txtnil1.Text) + Val(txtnil2.Text)
End Sub

Private Sub txtnil1_Change()
txtnil2.SetFocus
End Sub

cukup sekian untuk kali ini apabaila repost atau nggk berbobot sma sekali tinggal di apus aja pasrah

wasalmualikum wr.wb mohon
Find all posts by this user
Quote this message in a reply
 Reputed by :  oktori yusan [RJ](+1) , balonimia(+1)
06-25-2012, 04:33 PM
Post: #2
74jTeZ Offline
./Junk3r 1st C4d3t
Posts: 284
Joined: Nov 2011
Reputation: 5
RE: membuat fungsi operator
dah gw duga, genta bukan newbie.. mantap
ane izin comod.. maling
Find all posts by this user
Quote this message in a reply
06-25-2012, 04:37 PM
Post: #3
genta Offline
soutboxer
Posts: 962
Joined: Jan 2012
Reputation: 67
RE: membuat fungsi operator
(06-25-2012 04:33 PM)74jTeZ Wrote:  dah gw duga, genta bukan newbie.. mantap
ane izin comod.. maling

ini aja dapet dr modul om buka ciptaan ane tp ane edit2 dikit lah lemes .............silahkan om
Find all posts by this user
Quote this message in a reply
06-25-2012, 04:44 PM
Post: #4
hitheir Offline
./Devilz Commander
Posts: 278
Joined: Jun 2012
Reputation: 6
RE: membuat fungsi operator
ViBi Ya wew
Find all posts by this user
Quote this message in a reply
06-25-2012, 04:48 PM
Post: #5
genta Offline
soutboxer
Posts: 962
Joined: Jan 2012
Reputation: 67
RE: membuat fungsi operator
(06-25-2012 04:44 PM)hitheir Wrote:  ViBi Ya wew

ia om hmm
Find all posts by this user
Quote this message in a reply
06-25-2012, 08:27 PM
Post: #6
Heraclez Away
Devilcoders Kacangan
Posts: 344
Joined: May 2012
Reputation: 21
RE: membuat fungsi operator
om Genta mohon
Find all posts by this user
Quote this message in a reply
06-25-2012, 08:33 PM
Post: #7
genta Offline
soutboxer
Posts: 962
Joined: Jan 2012
Reputation: 67
RE: membuat fungsi operator
(06-25-2012 08:27 PM)Heraclez Wrote:  om Genta mohon
knapa om bingung ...........mohon
Find all posts by this user
Quote this message in a reply
06-26-2012, 12:37 AM
Post: #8
AnonymousOpsID Away
./Devilz Officer
Posts: 65
Joined: Jun 2012
Reputation: 1
RE: membuat fungsi operator
Visual Basic. Good Sharing

Tingkatkan masta..
Visit this user's website Find all posts by this user
Quote this message in a reply
06-26-2012, 03:36 AM
Post: #9
!and Offline
./Devilz 1st Cadet
Posts: 20
Joined: Jun 2012
Reputation: 0
RE: membuat fungsi operator
mantep om genta mantap
*biarpun ane gak ngerti maksut programnya ngakak
Find all posts by this user
Quote this message in a reply
06-26-2012, 03:31 PM (This post was last modified: 06-26-2012 03:36 PM by genta.)
Post: #10
genta Offline
soutboxer
Posts: 962
Joined: Jan 2012
Reputation: 67
RE: membuat fungsi operator
(06-26-2012 12:37 AM)AnonymousOpsID Wrote:  Visual Basic. Good Sharing

Tingkatkan masta..
ane ini newbie om .....om yg om mohon
(06-26-2012 03:36 AM)!and Wrote:  mantep om genta mantap
*biarpun ane gak ngerti maksut programnya ngakak
kurang lebih hampir sama dengan penggunaan kalkulator om pasrah
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Thumbs Up [Tutor] Membuat Deteksi IP Komputer Dengan VB 6 [DC]Anak-Baru 12 277 05-14-2013 09:53 AM
Last Post: tresna
  [Tutor] membuat antivirus dri VB6 BlaCk CyBeR 32 8,431 05-14-2013 12:39 AM
Last Post: tresna
Wink [Tutor] Membuat USB Defender Mr.Robot 13 295 04-06-2013 03:37 PM
Last Post: najong
Thumbs Up [Tutor] Membuat Serial Crack Smadav With VB 6 Rakagi 29 1,182 03-23-2013 11:24 AM
Last Post: lanionk
  [Tutor] Membuat program penyimpan password ( bagi yang pelupa ) [vb.net] nanda 24 927 03-22-2013 09:51 PM
Last Post: engkas04
  [Tutor] Membuat Credit Card Cheker menggunakan vb6 nanda 19 2,060 01-02-2013 11:27 AM
Last Post: nanda
  [Solved] tutorial lengkap membuat sistem pakar di vb? gandeso 18 1,998 12-02-2012 02:31 PM
Last Post: DC_Julianz
  [Tutor] Membuat tulisan terbalik [vb.net] ketom 6 279 11-16-2012 06:44 PM
Last Post: genta
Question [Ask] Ask Fungsi Componen VB6 ahmad_energie 5 732 11-09-2012 03:42 AM
Last Post: DC_Julianz
  [Solved] Membuat grafik pada VB 2008 pupud 1 382 11-08-2012 05:02 PM
Last Post: DC_Julianz

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-21-2013, 06:08 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE