Get the length of a string using
Get the length of a string using
Rate Get the length of a string using
(1(1 Vote))
' Display the length of the string "Mission Impossible"
Dim slength As Long ' receives the length of the string
slength = lstrlen("Mission Impossible") ' find the length of the string
MsgBox "The string 'Mission Impossible' contains " & slength & " characters."
End
End Sub
Get the length of a string using Comments
No comments yet — be the first to post one!
Post a Comment