<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In String Constant Words in String Library
Returns the actual length of the string stored within the string constant.
50 $CONST GREETING \ declare string constant called GREETING, max length 50 chars GREETING :=" Hello, World!" \ store a string inside the string constant GREETING CLEN$ . \ obtain and display length of the string
50 $CONST GREETING
GREETING :=" Hello, World!"
GREETING CLEN$ .
To get the maximum string space allocated to the string constant, see MAXLEN$.
MAXLEN$