Author Topic: _mffind2 not working as expected  (Read 6339 times)

David.Hansen

  • Community Member
  • Posts: 15
  • Hero Points: 0
_mffind2 not working as expected
« on: October 09, 2008, 09:06:14 PM »
I am using:
Code: [Select]
_mffind2(searchString, 'I', '+t <Project>', '*.*',  MFFIND_THREADED | MFFIND_GLOBAL);
In SlickEdit 10.0.0.3, this finds everything as expected, but in versions 11.0.2.0 and 12.0.3.0, after each result is found a pop-up appears with options 'yes, no, next file, global'

I thought the MFFIND_GLOBAL flag would prevent that, and find all results automatically, without any user interaction.

hs2

  • Senior Community Member
  • Posts: 2762
  • Hero Points: 292
Re: _mffind2 not working as expected
« Reply #1 on: October 09, 2008, 09:21:29 PM »
I'm using sth. like this:
Code: [Select]
_str search_options = make_search_options ((_default_option ('s') |
                                            VSSEARCHFLAG_HIDDEN_TEXT |
                                            VSSEARCHFLAG_NOSAVE_TEXT |
                                            VSSEARCHFLAG_MARK |
                                            VSSEARCHFLAG_FINDHILIGHT |
                                            VSSEARCHFLAG_GO), true);
status=_mffind (<search string>, search_options, MFFIND_PROJECT_FILES, "", MFFIND_THREADED | MFFIND_GLOBAL, true, false, '', '', true);

Good luck, HS2

David.Hansen

  • Community Member
  • Posts: 15
  • Hero Points: 0
Re: _mffind2 not working as expected
« Reply #2 on: October 09, 2008, 10:31:19 PM »
Well, I don't know why, but for some reason that worked.  :-\
I had to take out the VSSEARCHFLAGS though.

Code: [Select]
_str search_options = make_search_options (_default_option ('s'), true);
status=_mffind (<search string>, search_options, MFFIND_PROJECT_FILES, "", MFFIND_THREADED | MFFIND_GLOBAL, true, false, '', '', true);

Thanks HS, you're a life saver.