VB 6 – Len()

Table of Contents

Toggle

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()
Advertisements
Advertisements
Advertisements

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version