Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>aminstr() - get the shortest string in a character array</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     aminstr() - get the shortest string in a character array
  Usage:    <string> = aminstr(<array>)
  Params:   array <array>, an array of strings
  Returns:  string equal to the shortest string found in the array

 ---------------------------------- Example ---------------------------------

                 declare strings[5]
                 strings[1] = "This one"
                 strings[2] = "That one"
                 strings[3] = "The other one"
                 strings[4] = "Someone"
                 strings[5] = "Noone"

                 ? aminstr(strings)
                 * prints "Noone"

See Also: aminstrlen() aminstrn()

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