Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking the Find Dialog box
Message
From
18/02/2005 09:24:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Invoking the Find Dialog box
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
00988286
Message ID:
00988286
Views:
71
Is there a way to invoke the VFP Find Dialog box other than doing a KEYBOARD '{CTRL+F}'? I have a child screen that gets called from a parent screen to allow the user to edit a memo field for a row on the table. I needed to add search and replace functionality to the editbox and I thought the VFP Find Dialog would be the thing to do. In the form I added a button that when clicked sets focus to the editbox. In the editbox's SetFocus() event I issue a KEYBOARD '{CTRL+F}' which opens the Find Dialog... Sometimes... I finally got it to work in this manner but I had to add an =INKEY(.2,'H') function to wait for 2/10ths of a second before issuing the KEYBOARD command. It works but it feels kinda cheesy. I'd like to see if there is another way to open the Find Dialog by calling it directly like a form or an object. Does anyone know if there is a way to do this?

Any help would be greatly appreciated!

Jim White
Time is a wonderful teacher. Unfortunately it kills all of its students.
Next
Reply
Map
View

Click here to load this message in the networking platform