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:
“Nowadays peoples visual imagination is so much more sophisticated, so much more developed, particularly in young people, that now you can make an image which just slightly suggests something, they can make of it what they will.”
—Robert Doisneau (b. 1912)
“The man who is admired for the ingenuity of his larceny is almost always rediscovering some earlier form of fraud. The basic forms are all known, have all been practicised. The manners of capitalism improve. The morals may not.”
—John Kenneth Galbraith (b. 1908)