F$LEN()

Description

F$LEN() is used to return the length of the argument item.

Call Signature

int F$LEN ( any target )

Return Value

int

If the argument is a string expression, the length of the string is returned. If the argument is a numeric parameter, the number of values set in the parameter is returned. If the argument is an EASI array, then the number of elements is returned. If the argument type is a multi-line string expression, the number of lines is returned.

Argument

any target:

A numeric, vector, string, or pointer expression.

Example

The following section will establish the length of the string abc in characters (5), the number of entries in the array int_array (100 regardless of the number that have been assigned values), and the number of entries assigned in the parameter DBIC (3).


 local string abc, int int_array[100]

 abc = "Hello"
 print f$len(abc)

 int_array[1] = 100
 int_array[2] = 200
 print f$len(int_array)

 dbic = 1,2,3
 print f$len(dbic)

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.