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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically set parameters in Find dialog

Status
Not open for further replies.

bobo123

Programmer
Oct 4, 2002
30
Hi all,
please does anybody know, how to set parameters in Find dialog programmatically (Match case, Wrap around, ...)
Thanks to all

Bobo
 
Bobo,
Which "Find" are you speaking of? You can automate filer.DLL - this has been available since VFP 5.0!

Rick
 
Thats all about Find window in VFP, which appears after CTRL+F in BROWSE mode
Bobo
 
Bobo,

I don't know if you can bring up the Find dialogue from with in an EXE file. If you can, then you could always use KEYBOARD to enable its various options.

Oh, wait. That won't work. The dialogue is modal. Sorry.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
bobo123,

I don't know what version of VFP you use, but that's what I found in VFP 6.0 Help:

Find Dialog Box

Category Data Query
Default Catalog Visual FoxPro Catalog\Foundation Classes\Data Query
Class _finddialog
Base Class Form
Class Library _table.vcx
Parent Class _form
Sample ...\Samples\Vfp98\Solution\Ffc\dataqry.scx


Remarks

This class provides a generic Find dialog with simple options such as field choice. This class uses the Find object.

To use, drop the class on a project or, from the Component Gallery Item Shortcut menu, select Create Form or Add to Project. When you drop the class on a project, you can choose between adding the class, creating a subclass, or creating a form. When you drop the class on a project or choose Create a new form from the selected class in the shortcut menu, Visual FoxPro displays an Open dialog box so you can specify the name of the form, then creates and opens the form in the Form Designer.

After that, you can find properties an methods, including lMatchCase, lWrapAround, etc. I hope it's what you need.

Stella
 
Bobo,

Why not just write your own? Not very hard to replicate the functionality with code.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top