Some Notes on the Len() Function

In VB, function Len() is mainly used to return the length of a string.However, if you pass something other than a string type variable as its argument, the result may be different. For example, test the following code:

 Public Sub TestLen()    Dim sVal As String    Dim lVal As Long    Dim iVal As Integer    Dim dVal As Double    Dim vVal As Variant    Debug.Print

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: