Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

LONGEST( aArray )

Purpose

Determine the length of the longest element in an array. Any elements
not already strings are turned into strings before the calculation
is made.

Arguments

     aArray -- array of strings to compare

Setup

The array must be declared and filled with any type(s) of data.

Example

     LOCAL array := { SPACE( 30 ), 1000, .T. }
     ? LONGEST( array )             && Returns 30

Returns

The length of the longest element in the array.

Side Effects

If the array is undeclared or any of its items is uninitialised, the
program will crash. If any elements are not character strings, they
will be stringified by a call to MAKE_STR() for the purpose
of the calculation.

Artful Calls

MAKE_STR

Source File

AA_LNGST.PRG

See Also: AFLENGTH() MAKE_STR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson