Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RLIB 3.0a Reference - <b>function:</b> acronym() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function:    ACRONYM()

Purpose:     Convert a text string to its abbreviated acronym.

Syntax:      ACRONYM( string )

Arguments:   string      - The character string to parse into an Acronym

Returns:     An acronym consisting of each starting alphabetic character
             starting at the beginning of the string and after each space.

Description: Just what you always wanted, an acronym builder!  Suppose you
             are writing a report and you want a short name for each
             division to appear in a column that will identify the
             division but not take up a lot of real estate on the report.
             Instead of printing a full name like "System Testing Under
             Preliminary Investigation Division", this function will
             reduce that long drawn out name to its proper acronym,
             "STUPID".

Notes:       Each acronym letter is retrieved from the string at each
             break of one or more spaces.  If no spaces are found in the
             string (i.e.  it is a single word), only the first letter of
             the string will be returned.

             If you want to ensure that the returned acronym is all upper
             case, force the return value to upper case with
             UPPER(ACRONYM(string)).

Example:     ? ACRONYM("Three Letter Acronym")
             *-- returns "TLA"

Source:      RL_ACRON.PRG

See also:    STR2DATE()

See Also: STR2DATE()

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