Syntax :
Len ( variable-name )
variable-name : The name of Visual Basic variable for which you want to determine the storage length.
Len ( variable-name )
variable-name : The name of Visual Basic variable for which you want to determine the storage length.
Dim strHello as String
Dim ingStrLen as Long
strHello = "Hello"
ingStrLen = Len( strHello )
Because the string "Hello" contains five characters , this places the value 5 into the variable ingStrLen.
Dim ingStrLen as Long
strHello = "Hello"
ingStrLen = Len( strHello )
Because the string "Hello" contains five characters , this places the value 5 into the variable ingStrLen.
No comments:
Post a Comment