Left$ (Function)
Fetches the specified character string length from the left of the character string.
Left$(<Character String>,<Length of Characters>)
Parameters
<Character String>
|
The Character String to be extracted (character string).
|
<Length of Characters>
|
The length of the character string to be extracted (integer).
|
Return Value
Returns the value of the character type string.
The content of the value is the extracted character string.
Description
Fetches the arbitrary character string length from the left (head) of the <Character String>.
Specify a character constant or a character variable for the eligible character string in <Character String>.
Specify the number of bytes to extract from the character string in <Length of Characters>.Specify the number of bytes in the range from 1 to the number of bytes eligible for extraction in the character string.
When the <Length of Characters> exceeds the number of bytes eligible for extraction of the character string, all of the bytes eligible for extraction are returned.
Example
Extract 8 bytes from the character string and set them to the Scene Title.
CHARA$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
TITLE$=Left$(CHARA$,8)
The results are as follows:
TITLE$="ABCDEFGH"