home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 6_functions / matchitem < prev    next >
Encoding:
Text File  |  2002-10-28  |  770 b   |  24 lines

  1. Synopsis:
  2.    $matchitem(<array> <word>)
  3.    $rmatchitem(<array> <pattern>)
  4.  
  5. Technical:
  6.    These functions are used to search through the given array for the item
  7.    that best matches the given word or pattern.
  8.  
  9. Practical:
  10.    These functions are analogous to $match() and $rmatch().  Given a word
  11.    or pattern, they search through the given array's contents and look
  12.    for the best match, if any.  Basically, the array's contents behave as
  13.    if they were the list of words or patterns passed to $match() or
  14.    $rmatch().
  15.  
  16. Returns:
  17.    > -1   item number in array that matched
  18.      -1   could not find specified array
  19.      -2   could not find a matching item
  20.  
  21. See Also:
  22.    Arrays(7); getitem(6); getmatches(6); getrmatches(6); setitem(6)
  23.  
  24.