DataBasic Reference > Statements and Intrinsic Functions > L > LENS 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

LENS Function (DataBasic) (m618703+lens_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

LENS Function

Returns the lengths of the elements in a dynamic array.

Syntax

LENS(dynArray)

Syntax Elements

dynArray A DataBasic expression that evaluates to a dynamic array.

Return Value

A dynamic array with the same structure as dynArray, but with each element replaced by its length in characters.

Example

ARY = "John":@AM:"Paul":@AM:"George":@AM:"Ringo":@AM:27.2
NEWARY = LENS(ARY)

Sets NEWARY to "4AM4AM6AM5AM4".

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