The name of the string variable to be modified
The position within
stringvar at which the
The number of characters in
The string used to replace characters within
Replaces a section of a string with characters from another string
If you omit
length, as many characters of
string as can fit into
stringvar are used.
length is greater then the length of
string is truncated to fit in the same
stringvar. This means that the
stringvar is not altered by the
start is less than 0, runtime error 5,
“Invalid procedure call or
runtime error occurs.
VB includes the Replace function, which enhances
the functionality of the
Mid statement by allowing
you to specify the number of times the replacement is carried out in
the same string.
Because it is a statement, this version of
does not accept named arguments.
As a statement,
Mid is implemented by the
compiler, rather than by the Microsoft.VisualBasic.Strings class.