220 likes | 243 Views
Learn how VB provides numerous functions for efficient string manipulation tasks, categorized by function type. Includes inspection, case conversion, substring extraction, formatting, string creation, and replacement functions.<br>
E N D
Manipulating Strings String Functions
String Functions VB provides a large number of functions that facilitate working with strings. These are found in Microsoft.VisualBasic.Strings For convenience they can be grouped according to the kind of task they’re designed to carry out.
Inspection Functions Inspection functions take a string (or strings) as argument(s) and return information about them in numeric form.
Case Conversion Functions These are fairly obvious.
SubString Functions There are several functions provided to extract part of string.
String Creation Functions Replace (“some people”, “o”, “a”)
String Creation Functions Replace (“some people”, “o”, “a”) “same peaple”
String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1)
String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people”
String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people” Replace (“some people”, “o”, “a”, 5)
String Creation Functions Replace (“some people”, “o”, “a”) “same peaple” Replace (“some people”, “o”, “a”, , 1) “same people” Replace (“some people”, “o”, “a”, 5) “ peaple” Notice that Start indicates the starting character for the Result string.