4MELFA-BASIC IV
 Detailed Explanation of Functions   4-322
Left$
[Function]
Obtains a string of the specified length starting from the left end. 
[Format]
[Reference Program]
1 C1$=Left$("ABC",2) ' "AB" is assigned to C1$.
[Explanation]
(1) Obtains a string of the specified length starting from the left end. 
(2) An error will be generated if the value is a negative value or is longer than the string. 
(3) It is not possible to describe a function that contains an argument in <Character String> and <Equation>. 
If such a function is described, an error will be generated during execution.
[Reference]
Mid$, Right$
Len
[Function]
Returns the length of the string. 
[Format]
[Reference Program]
1 M1=Len("ABCDEFG") ' 7 is assigned to M1.
[Explanation]
(1) Returns the length of the argument string. 
[Reference]
Left$, Mid$, Right$
<Character String Variable >=Left$(<Character String>, <Equation>)
<Numeric Variable>=Len(<Character String>)