Blogger Themes

widget
News Update :

pembuatan angka

Senin, 30 Mei 2011


Figure 2.2: List of Objects

 
 
Figure 2.3: List of Procedures
 

 
Example 2.1.1
Private Sub Form_Load ( )
Form1.show
Print “Welcome to Visual Basic tutorial”
End Sub
Figure 2.4 : The output of example 2.1.1
Example 2.1.2
Private Sub Form_Activate ( )
Print 20 + 10
Print 20 - 10
Print 20 * 10
Print 20 / 10
End Sub

Figure 2.5: The output of example 2.1.2

You can also use the + or the & operator to join two or more texts (string) together like in example 2.1.4 (a) and (b)
Example 2.1.4(a)

Private Sub
A = Tom
B = “likes"
C = “to"
D = “eat"
E = “burger"
Print A + B + C + D + E
End Sub
Example 2.1.4(b)

Private Sub
A = Tom
B = “likes"
C = “to"
D = “eat"
E = “burger"
Print A & B & C & D & E
End Sub
Share this Article on :

0 komentar:

Posting Komentar

 

© Copyright MeMbLe 2010 -2011 | Design by Herdiansyah Hamzah | Published by Borneo Templates | Powered by Blogger.com.