MID$ Statement Details Syntax MID$(stringvariable,start[,length])=stringexpression Argument Description stringvariable The string variable being modified. start A numeric expression giving the position in stringvariable where the replacement starts. length The length of the string being replaced. The length is a numeric expression. stringexpression The string expression that replaces part of the stringvariable. The arguments start and length are integer expressions. The argument stringvariable is a string variable, but stringexpression can be a string variable, string constant, or string expression. The optional length refers to the number of characters from the argument stringexpression that are used in the replacement. If length is omitted, all of stringexpression is used. However, regardless of whether length is omitted or included, the replacement of characters never goes beyond the original length of stringvariable.