Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > S

SLEN

Scroll Prev Top Next More

(SLEN(text))

 

Returns the length of a text string.

 

SLEN can be used to ensure that a string does not exceed the space allowed for it on a form, variable form, or report. When strings are concatenated or passed as parameters to a procedure file, the length of a string might be unknown.

 

In the following example, the value of vslen is 5, the number of characters in the text string.

 

SET VAR vslen = (SLEN('ABCDE'))