Contoh
looping
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Byte
i = 1
Do While i <= 10
ListBox1.Items.Add(i)
i = i + 1
Loop
For j = 10 To 1 Step -1
ListBox2.Items.Add(j)
Next j
Dim x As String
x = "STMIK"
For i = 1 To 5
TextBox1.Text = TextBox1.Text & i & x &vbCrLf
Next
End Sub
End Class
Tidak ada komentar:
Posting Komentar