Find / Search In A show Form In Dialog

I have a method that ShowsForm InDialog, then enters find mode.
After the critera has been entered, there is no way to run a search it says in find mode, unless I attach the search method to the onhide event. The problem with this is that the user is going to want to select a button the perform the search not close out of the window.

I know this has to do with the non-modal dialog forms.

Is there a way I can accomplish this simple task?

Rather than putting the form in to find mode - consider making a separate form with globals on it, then writing a method to perform the find based on the field contents.

At the moment there is no way to “capture” the data in the fields they entered in find mode to perform your own search.

Bob Cusick

I was trying to avoid creating more globals then I have to. I guess there is no way around it.

Thanks

Yes, I can understand that!

However, globals are just in-memory variables. Here’s what I do:

I create several text, number and date globals so I can use them in all my dialogs (where I have the same problem you do) - and then I can just re-use them.

Cheers,

Bob Cusick

I regards to globals I had a question.

Could just make up about 15 globals for various searching throughout different forms that would be being used similtamiously by different users as long as the datatypes where the same and there would be no conflicts?

Thanks

YEP. That’s the whole point of variables. Each client gets their own “copy” of them (in-memory on each client).

:-)

Bob