Home » VB 6 – Len()

VB 6 – Len()

In this example, you will learn about string handling function called Len() which return the length of a given string.

VB Code

Private Sub Command1_Click()

Dim str As String
str = Text1.Text
Text2.Text = Len(str)

End Sub

Output – Len()

Output - String Function - Len()
Output – String Function – Len()
(adsbygoogle = window.adsbygoogle || []).push({}); </script

Please support us by disabling your adblocker or whitelist this site from your adblocker. Thanks!

turn of adblocker imag

(adsbygoogle = window.adsbygoogle || []).push({});