Use in Visual Basic
In Visual Basic, the prototype of the Len function is this:
Function Len (ByVal Str As String)An example below shows an example of the use of Len function.
Sub Main Dim Str As String Dim Int As Integer Str = InputBox("Enter a string") Int = Len(Str) MsgBox(CStr(Int)) End SubThis function reads a string from an input box and outputs its length.
For example, the input "Hello!" will output 6.
Read more about this topic: Len (programming)
Famous quotes containing the words visual and/or basic:
“Dialogue should simply be a sound among other sounds, just something that comes out of the mouths of people whose eyes tell the story in visual terms.”
—Alfred Hitchcock (18991980)
“Scientific reason, with its strict conscience, its lack of prejudice, and its determination to question every result again the moment it might lead to the least intellectual advantage, does in an area of secondary interest what we ought to be doing with the basic questions of life.”
—Robert Musil (18801942)