OnSoundExParse Event

Applies to
TIB_Connection

Declaration
TIB_SoundExParse = Procedure(Sender: TObject; SourceStr: string; var ResultStr: string ) of object;

Description
This event gives the developer the ability to define a SoundEx parsing routine to be used during searches.

Simply parse the SourceStr parameter using the same routine as implemented on this connection's server. Return the value as a string.

So if your SoundEx algorithm usually returns an integer or small-integer value return ResultStr = IntToStr( val );

The ReturnStr value is used in a DSQL WHERE clause and would have been converted to text anyway. By providing the interface in this way IBO supports SoundEx routines that do want to return string values.

For more information refer to the TC_SoundEx and TC_SoundExMax routines provided in the IB_Parse unit.