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:
“The visual is sorely undervalued in modern scholarship. Art history has attained only a fraction of the conceptual sophistication of literary criticism.... Drunk with self-love, criticism has hugely overestimated the centrality of language to western culture. It has failed to see the electrifying sign language of images.”
—Camille Paglia (b. 1947)
“Unlike femininity, relaxed masculinity is at bottom empty, a limp nullity. While the female body is full of internal potentiality, the male is internally barren.... Manhood at the most basic level can be validated and expressed only in action.”
—George Gilder (b. 1939)