Bruce,
Thanks for the reply. I added code to the MakeFilter procedure in the WebHandler as follows:
p_web.MakeFilter PROCEDURE(String p_Filter,String p_Sub,String p_Str,Long p_Type,Long p_Case=0)
ReturnValue ANY
! Start of "NetTalk Method Data Section"
! [Priority 5000]
strf StringTheory
i Long
! End of "NetTalk Method Data Section"
CODE
! Start of "NetTalk Method Executable Code Section"
! [Priority 2500]
if p_type = Net:Search
strf.SetValue(p_Filter)
IF strf.CountWords() > 1
strf.Split(' ','"')
LOOP i = 2 to strf.Records()
IF CLIP(UPPER(strf.GetLine(i))) = 'AND' OR CLIP(UPPER(strf.GetLine(i))) = 'OR' OR CLIP(UPPER(strf.GetLine(i))) = '&'
strf.DeleteLine(i)
ELSE
CASE SUB(strf.GetLine(i),1,1)
OF '-'
OF '+'
OF '|'
strf.SetLine(i,SUB(strf.GetLine(i),2,len(strf.GetLine(i)) -1))
ELSE
strf.SetLine(i, '+' & strf.GetLine(i))
END
END
END
strf.Join(' ')
p_Filter = strf.GetValue()
ReturnValue = parent.MakeFilter(p_Filter,p_sub,p_Str,p_Type,p_Case)
END
END
! Parent Call
ReturnValue = PARENT.MakeFilter(p_Filter,p_Sub,p_Str,p_Type,p_Case)
! [Priority 7500]
! End of "NetTalk Method Executable Code Section"
RETURN ReturnValue
This is not having any effect. When I enter two words, I am still needing to add the "+" key to get the desired result.
When I placed a stop right before "strf.SetValue(p_Filter)" to display the "p_Filter" field it is showing nothing there.
Do I have this in the right place?
Thanks for your help
Ken Watts