This is part of the HicEst documentation
LEN: Length of a Character String or of an Array
The result of LEN(x) is the number of bytes in string x, or the number of elements in the array x.
⇾Home
⇾Contents
⇾more Strings
⇾ Examples
Bookmarks:
⇾length_of_a_string
⇾number_of_array_elements
length_of_a_string
= LEN(string)
examples:
CHARACTER a*100, b="ABCDE"
len_a = LEN(a)
! 100
len_b = LEN(b)
! 5
ALIAS(a,1, c,3, d,72)
len_c = LEN(c)
! 3
len_d = LEN(d)
! 72
len_substring = LEN( a(x:y) )
! y-x+1
number_of_array_elements
= LEN(array)
examples:
DIMENSION u(12,4)
REAL :: n=3, v(n)
len_u = LEN(u)
! 48
len_v = LEN(v)
! 3
⇾ Trimmed length of a character string or of an array
⇾
Support HicEst
⇾
Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.