34,333
edits
Changes
→Extracting Text from the Beginning of String
== 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 paramaters, 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 "This is a test" string:
<pre>
Dim strMyString As String = "This is a String Variable Value"
Microsoft.VisualBasic.Left(strMyString, 4)
</pre>
== Extracting Text from the End of a String ==