How to display search results in a view?

Want to help a beginner ? ;-)I have a view, with an action in it, coded this way:

Dim uiws as New NotesUIWorkspace

Dim uivw as NotesUIView

Set uivw = uiws.CurrentView

Set myview = uiws.View

string$ = inputbox (“Input expression:”,“Query”)

i = myview.FTSearch(string$, 0)

When the action runs, nothing changes in the view. It doesnt display/filter the results. What is wrong ?

Subject: How to display search results in a view ?

The line

Set myview = uiws.View

looks a little suspect.

myview is not Dim’ed and should in my knowledge become a variable of type variant, and .View is not a defined property or method of NotesUIWorkspace object

The latter element should probably be uivw.View rather than uiws.View