Ders - 5 Sayfa - 8 Visual Basic de Algoritma Kavramları (Dışarı Adım Attık)
Örnekler :
Private Sub Command1_Click()
a = (" Bilim ve Teknoloji ")
b = "-"
c = "-"                   
MsgBox b + a + c
End Sub
Private Sub Command1_Click()
a = LTrim(" Bilim ve Teknoloji ")
b = "-"
c = "-"                   
MsgBox b + a + c
End Sub
Private Sub Command1_Click()
a = RTrim(" Bilim ve Teknoloji ")
b = "-"
c = "-"                   
MsgBox b + a + c
End Sub
Private Sub Command1_Click()
a = Trim(" Bilim ve Teknoloji ")
b = "-"
c = "-"                   
MsgBox b + a + c
End Sub
Karakter Hesaplama Komutları :
Len :
Bir değişken veya metinin karakter sayısını hesaplar.
Kullanımı;
Len(Değişken veya "Metin")
Örnek :
Private Sub Command1_Click()
MsgBox Len("Savaş")
End Sub