Changes

Working with Strings in Visual Basic

No change in size, 19:37, 13 August 2007
no edit summary
== Finding the Length of a String ==
it It is common to need to find out the number of characters in any given string. Visual Basic provides mechanisms for finding the length of both string variables and string literals. The length of a string literal can be obtained using the ''Len()'' function, which takes the string as an argument and returns the length:
<pre>
== Extracting Text from the Beginning of String ==
A portion from the beginning of a string can be extracted using the ''Microsoft.VisualBasic.Left()'' function. This function takes two paramatersparameters, the string from which the text is to extracted and the number of characters to extract. For example, the following code extracts the word "This" from the string:
<pre>