Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 06-20-2013, 07:12 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: 1,033
Joined: Jan 2012
Reputation: 68
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: 301
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: 1,033
Joined: Jan 2012
Reputation: 68
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: 279
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: 1,033
Joined: Jan 2012
Reputation: 68
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: 354
Joined: May 2012
Reputation: 23
RE: membuat fungsi operator
Master 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: 1,033
Joined: Jan 2012
Reputation: 68
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: 1,033
Joined: Jan 2012
Reputation: 68
RE: membuat fungsi operator
(06-26-2012 12:37 AM)AnonymousOpsID Wrote:  Visual Basic. Good Sharing

Tingkatkan masta..
ane ini newbie om .....om yg mastah 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
  [Tutor] Membuat BOT Visitor [DC]Anak-Baru 12 353 06-17-2013 09:40 AM
Last Post: maulanayusuf
  Membuat dan memeriksa SerialKey RUD1 10 186 06-11-2013 05:28 PM
Last Post: Obito
  [Tutor] membuat antivirus dri VB6 BlaCk CyBeR 33 8,616 06-10-2013 09:35 AM
Last Post: rsdvsanhas
  [Tutor] Membuat downloader file RUD1 18 397 06-09-2013 01:50 PM
Last Post: febriardian
  [Tutor] Tutorial Membuat Simple Splash Screen With Vb6 [DC]Anak-Baru 3 131 06-05-2013 02:49 PM
Last Post: rifqirachel
  [Tutor] Cara Membuat Keygen [DC]Anak-Baru 6 208 05-24-2013 09:59 AM
Last Post: hitheir
  [Ask] Cara Membuat VB email Sender klo bisa ada attachment wildan123456 6 127 05-22-2013 11:48 PM
Last Post: Beruang Kabur
Thumbs Up [Tutor] Membuat Deteksi IP Komputer Dengan VB 6 [DC]Anak-Baru 12 359 05-14-2013 09:53 AM
Last Post: tresna
Wink [Tutor] Membuat USB Defender Mr.Robot 13 369 04-06-2013 03:37 PM
Last Post: najong
Thumbs Up [Tutor] Membuat Serial Crack Smadav With VB 6 Rakagi 29 1,294 03-23-2013 11:24 AM
Last Post: lanionk

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 06-20-2013, 07:12 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