The following example sets a filter in the current work area to show those records whose Title field sounds like the word typed in the entryfield soundsLike:

function showTitlesLike_onClick()

   private cArg 

   cArg = form.soundsLike.value 

   set filter to difference( TITLE, "&cArg" ) == 4 // Best matches only 

Macro substitution is used to convert the value in the entryfield into a literal string for the filter expression.