Anda di halaman 1dari 6

c   




 c






   

 




  
c 
  c 
  c

  
 
  
÷

Y 
uY Y Y 
 Y  Y  Y
Y  Y YY  Y
Y  Y Y Y Y Y  Y
Y  Y Y Y   Y Y  Y
Y
Y  ÷  
u Y  Y 
YY Y  YY Y   Y
PublicClass Form1
PrivateSub Button1_Click( ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Button1.Click
Dim input1 AsString = TextBox1.Text
Dim input2 AsString = TextBox2.Text
Dim kalimat AsString
kalimat = input1 & " "& input2
ListBox1.Items.Add( "Kalimat 1 : " & input1)
ListBox1.Items.Add( "Kalimat 2 : " & input2)
ListBox1.Items.Add( "Kalimat : " & kalimat)
ListBox1.Items.Add( "Panjang Karakter " &CStr(input1)
&" : "& input1.Length & " Karakter" )
ListBox1.Items.Add( "Panjang Karakter " &CStr(input2)
&" : "& input2.Length & " Karakter" )
ListBox1.Items.Add( "Potong Kata : " &
Mid(TextBox1.Text, 6, 3) & " "& Mid(TextBox2.Text, 1,
4))
ListBox1.Items.Add( "Relace kalimat : "&
Replace(TextBox1.Text, Mid(input1, 26,
30),(Mid(TextBox2.Text, 13, 20) )))
EndSub
PrivateSub Form1_Load( ByVal sender As System.Object, ByVal e
As System.EventArgs) HandlesMyBase .Load
EndSub
EndClass
 Y  Y 
Y  Y  Y
 Y
PublicClass Form1

PrivateSub Button1_Click( ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim asli AsString = TextBox1.Text
ListBox1.Items.Add( "Asli : "& asli)
ListBox1.Items.Add( "Panjang String :
"&CStr(asli).Length & " Karakter" )
ListBox1.Items.Add( "Huruf Besar : " & asli.ToUpper())
ListBox1.Items.Add( "Huruf KEcil : " & asli.ToLower())
ListBox1.Items.Add( "Karakter ke -1 : "&
asli.Substring(0, 1))
ListBox1.Items.Add( "Karakter ke -3 : "&
asli.Substring(2, 1))
ListBox1.Items.Add( "Karakter ke -5 : "&
asli.Substring(4, 1))
ListBox1.Items.Add( "Karakter ke -7 : "&
asli.Substring(6, 1))
EndSub

PrivateSub Form1_Load( ByVal sender As System.Object,


ByVal e As System.EventArgs) HandlesMyBase .Load
EndSub

EndClass
Y

Y
ÔY ÷ 
u Y  YY 
Y  Y YY Y   Y
PublicClass Form1

PrivateSub Button1_Click( ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim input AsString = TextBox1.Text
Dim blok AsInteger
blok = input.IndexOf( " ")
ListBox1.Items.Add( "Kalimat : " & input)
ListBox1.Items.Add( "Panjang Kalimat : " & Len(input)
&" karakter" )
ListBox1.Items.Add( "Huruf Besar kecil : " &
(input.Substring(0, blok)).ToUpper() &
(input.Substring(blok, input.Length() -
blok)).ToLower())
ListBox1.Items.Add( "4 Karakte r di Kiri : " &
Microsoft.VisualBasic.Left(input, 4))
ListBox1.Items.Add( "4 Karakter di Kanan : " &
Microsoft.VisualBasic.Right(input, 4))
ListBox1.Items.Add( "Relace kalimat : "&
Replace(TextBox1.Text, Mid(input, 5, 5), "*GANTI
KATA*"))
ListBox1.Items.Add( "Kalimat : " & input)
EndSub

PrivateSub Form1_Load( ByVal sender As System.Object,


ByVal e As System.EventArgs) HandlesMyBase .Load

EndSub
EndClass
Y

Y Y
 Y 
Y  Y  Y YY Y   Y Y  YY Y Y   Y
 Y  Y YY Y Y  Y
PublicClass Form1

PrivateSub Button1_Click( ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles Button1.Click
Dim input AsString = TextBox1.Text
Dim input2 AsString = Trim(input)
Dim blok AsInteger
blok = input2.IndexOf( " ")
Dim input3 AsString
input3 = (input2.Substring(0, blok)).ToUpper() &
(input2.Substring(blok, input2.Length() -
blok)).ToLower()
TextBox2.Text = ( "********" & input3 & "********" )

EndSub
EndClass
Y

Y
Y

Y     ÷

‘
  Ô   YuY ! "Y  #$$    
$  $Y% Y
& 'Y  Y Y(Y) YuuY"Y
* YY+ Y, Y- YÔ   
Ô   Y+
 #Y
‘ Y

YuY  Y  Ô   

YY  Y  Ô   

YY  Y  Ô