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

APAD( aArray[, nLength[, nStart[, nStop ]]] )

Purpose

Pad each element of a string array to a specified length.

Arguments

     aArray -- array of strings to pad

     nLength -- length to pad to -- default to longest element + 2

     nStart -- start at element; default to 1

     nStop -- stop at element; default to last element

Setup

The array elements must contain strings. The other parameters are optional.

Example

     LOCAL array := { "Negotiate peacefully", ;
                      "Obfuscate royally", ;
                      "Retaliate justly", ;
                      "Annihilate mercilessly" }

     APAD( array )         && pad elements to
                           && LEN( array[4] ) + 2

Returns

.T.

Side Effects

If any array elements are not character strings, the program will crash.

Artful Calls

LONGEST

Source File

AA_APAD.PRG

See Also: LONGEST()

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