EXAMPLE:  MID$ (A$, 5, 3) 
PARAMETERS: 
1.  String: string expression 
2.  Position: numeric expression truncated to an integer in the [0 , 256[ range. 
3.  Number of characters: numeric expression truncated to an integer in the 
[0 , 256[ range. The default option is from the specified position to the end of 
the string when this parameter is omitted. 
EXPLANATION: 
1.  Returns the substring of a specified length from a specified position within a 
string. A substring from the specified position to the end of the string when the 
length of the substring is not specified. 
2.  A substring of length 0 (null) is returned when the specified position exceeds 
the length of the string. 
3.  A substring from the specified position to the end of the string is returned 
when the specified number of characters is greater than the number of 
characters from the specified position to the end of the string. 
SEE: RIGHT$, LEFT$ 
 
RIGHT$   
 
PURPOSE: Returns a substring of a specified length counting from the right of a 
string. 
FORMAT: 
EXAMPLE:  RIGHT$ (“ABCDEF”, 3) 
PARAMETERS: 
1.  String: string expression 
2.  Number of characters: numeric expression truncated to an integer in the 
[0 , 256[ range. 
EXPLANATION: 
1.  Returns the substring of a specified length from the right of a string. 
2.  The entire string is returned when the specified number of characters is 
greater than the number of characters of the string. 
 
SEE: MID$, LEFT$