• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Thursday, June 7, 2012

VISUAL BASIC 6 - TUTORIAL FOR NEWBIE (OPERATOR)

Hi.. welcome to my blog.. in "We Are Knowledge".. In here you will getting many IT knowledge. like this article discuss about program language VB 6.

I want giving you tutorial for beginner. likely this, I want making simple program form program language VB 6 for you.. You will know ??.. Let's do read my article... have fun and enjoy !!!

First open VISUAL BASIC 6 program in your computer or laptop. previously you must having this program... taht is VB 6.

And make like this
You can use facility "TOOLBOX" at left your pc.



You can change name in PROPERTIES "CAPTION". you can change like do you want..

Then you must input program code with 2 (two) method you can choice 1 (one):

click menu view >> code..

OR

Double Click in text1, text 2 or command1...



And you can COPY This program and PASTE in CODE FORM


For operator ( + )

Private Sub Command1_Click()
Dim nilai1, nilai2 As Integer
nilai1 = Text1.Text
nilai2 = Text2.Text
hasil = nilai1 + nilai2
Text3.Text = hasil
End Sub

And result


Then execution your program with click knop "PLAY"




For operator ( - )

Private Sub Command1_Click()
Dim nilai1, nilai2 As Integer
nilai1 = Text1.Text
nilai2 = Text2.Text
hasil = nilai1 - nilai2
Text3.Text = hasil
End Sub

And result




Then execution your program with click knop "PLAY"




For operator ( * )

Private Sub Command1_Click()
Dim nilai1, nilai2 As Integer
nilai1 = Text1.Text
nilai2 = Text2.Text
hasil = nilai1 * nilai2
Text3.Text = hasil
End Sub

And result


Then execution your program with click knop "PLAY"



For operator ( / )

Private Sub Command1_Click()
Dim nilai1, nilai2 As Integer
nilai1 = Text1.Text
nilai2 = Text2.Text
hasil = nilai1 / nilai2
Text3.Text = hasil
End Sub

And result



Then execution your program with click knop "PLAY"




OK..Just it... Reading my other article...
Thanks For You...
don't forget to back again..
see you later

No comments:

Post a Comment