TSC AUTO ID Technology Co., Ltd. 154 Copyright 2013 All Rights Reserved.
LEN( )
Description
This function returns the length of a string.
Syntax
LEN (string)
The string whose length is to be measured.
Example
Sample Code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
B=LEN(A$)
CLS
TEXT 10,10,"3",0,1,1,A$
TEXT 10,50,"3",0,1,1,"STRING LENGTH="+STR$(B)
PRINT 1
EOP
DEMO
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), STR$(), VAL()