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:
“Unlike any other visual image, a photograph is not a rendering, an imitation or an interpretation of its subject, but actually a trace of it. No painting or drawing, however naturalist, belongs to its subject in the way that a photograph does.”
—John Berger (b. 1926)
“It is a strange fact that freedom and equality, the two basic ideas of democracy, are to some extent contradictory. Logically considered, freedom and equality are mutually exclusive, just as society and the individual are mutually exclusive.”
—Thomas Mann (18751955)