|
getSuggestionArray (strInput [, intMax])
This method works much like getSuggestionString , except it returns multiple results. IntMax can be used to set a limit of the number of results returned, the default is 3.
The most probably results come first in the array.
getSuggestionArray returns an array of spelling suggestion for strInput. If the string has no spelling mistakes, then getSuggestionArray returns an empty array with a UBound of -1.
<%
set objDYM = server.createObject("ASPDidYouMean.DidYouMean")
strQuery = "Any strinng att all"
arrSuggest = objDYM.getSuggestionArray (strQuery)
for each strSuggest in arrSuggest
response.write strSuggest & "<br>"
next
set objDYM = nothing
%>
|