Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active X search 1

Status
Not open for further replies.

KoenPiller

Programmer
Apr 4, 2001
270
NL
Hi,

Does anyone know of a window-style search method in FoxPro?
(i) the twisting magnifying-glass while search is going on, (ii) show of the intermnediate found results while still searching and (iii) in case the usere pushes <stop> button the resulst are restricted to that selection? Believe this should be an ActiveX procedure but how is it called and how to use it in VFP 6.0 ?

Koen
 
Koen,
If you are using an SQL select, no I don't believe so. If you use the &quot;old&quot; style SCAN/ENDSCAN loop, you could add whatever code you want to update graphics, show intermeedite results, check for user input, etc.. This will however add overhead (read time) to the search - how much will depend on how often you make the checks inside the loop.

Rick
 
Rick,
Yes, I am using SQL SELECT() so believe I have to do without the interface I would rather use.
Koen
 
KoenPiller

Take a look at FAQ184-139 and FAQ184-140.

Within FAQ184-140 you will find the code necessary for a recursive search, but the program itself only returns a single path/filename.

I have a program that allows you to search for files using skeletons such as *.jpg, *.gif, and appends the path/filename to a table.

Unfortunately, the code is contained in the click event of a commandbutton, and without prior knowledge of the various tables and controls involved may not make too much sense.

If you cannot find such code elsewhere, you may need to &quot;roll your own&quot;.

What you also need to bear in mind is that such searches are slow by comparison to a Windows Explorer search.

Good luck.

Chris :)

 
Chris,
I have downloaded Ben's FileSearchClass but this is not what I was looking for. I have already a search routine, in SQL SELECT(). I was just looking for a nicer output than the original FoxPro ProgressBar and thought it should be possible to use an activeX component, just like the WIndow Search viz the magnify glass twisting while search goes on and if possible, like the Windows Search, the show of the already found results. However I must believe Windows is not using an active X component on this search routine and I will try to figure out how to simulate this in FoxPro.
Thanks anyhow for your reply.
Koen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top