Available on:

LEN

the LEN command (short for "length") is used to determine the length of a string, or the total number of characters in the string. This is a very useful command when you need to know the size of a string to perform manipulation or comparison operations.

You can check whether a string exceeds a certain maximum length or not. You can use LEN to create strings of a fixed length by adding spaces or other characters. You can combine LEN with other functions such as LEFT$, RIGHT$, and MID$ to extract and modify parts of a string. You can compare the length of two strings to make decisions in your program.

SYNTAX

 = LEN( text )


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 x = LEN( "TEST" )


Used in:

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS