DataBasic Reference > Statements and Intrinsic Functions > L > LEN Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

LEN Function (DataBasic) (m618703+len_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

LEN Function

Returns the numeric value of the length of a string.

Syntax

LEN(char-string)

Syntax Elements

char-string A field of characters expressed as a variable or symbol name, a dynamic array reference, or a literal enclosed in quotes.

Operation

LEN returns the numeric value of the length of the string specified by char-string.

Examples

A = "1234ABC"
B = LEN(A)

Assigns the value 7 to variable B.

Q = LEN("123")

Assigns the value 3 to variable Q.

X = "123"
Y = "ABC"
Z = LEN(X:Y)

Assigns the value 6 (variable Y concatenated to variable X) to variable Z.

RealityV15.1 (MoTW) Revision 7Comment on this topic