
15-58
LEN (Function) [Conforms to SLIM]
Function
Obtains the length of a character string in bytes.
Format
LEN (<Character string >)
Explanation
This statement obtains the total sum byte count of the character string length
designated in <Character string>.
Related Terms
MID$, LEFT$, RIGHT$
Example
DEFINT li1, li2
DIM ls1 As String
li1 = LEN( “abcdefg” )
'Assigns 7 characters of the character string “abcdefg” to li1.
li2 = LEN( ls1 ) 'Assigns the byte count of ls1 to li2.
Komentarze do niniejszej Instrukcji