Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_metaph()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_METAPH()
 Convert a character string to MetaPhone format
------------------------------------------------------------------------------

 Syntax

      FT_METAPH( <cName> [, <nSize> ] ) -> cMetaPhone

 Arguments

     <cName> is the character string to convert

     <nSize> is the length of the character string to be returned.
             If not specified the default length is 4 bytes.

 Returns

     A phonetically spelled character string

 Description

     This function is a character function use to index and search for
     sound-alike or phonetic matches.  It is an alternative to
     the SOUNDEX() function, and addresses some basic pronunciation
     rules, by looking at surrounding letters to determine how parts of
     the string are pronounced.  FT_METAPH() will group sound-alikes
     together, and forgive shortcomings in spelling ability.

 Examples

     USE Persons
     INDEX ON FT_METAPH( LastName ) TO LastName
     SEEK FT_METAPH( "Philmore" )
     ? FOUND(), LastName             // Result: .T. Philmore
     SEEK FT_METAPH( "Fillmore" )
     ? FOUND(), LastName             // Result: .T. Philmore

 Source: METAPH.PRG

 Author: Dave Adams

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