VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get the length of a string using

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get the length of a string using

Rate Get the length of a string using



' 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

Download this snippet    Add to My Saved Code

Get the length of a string using Comments

No comments have been posted about Get the length of a string using. Why not be the first to post a comment about Get the length of a string using.

Post your comment

Subject:
Message:
0/1000 characters