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!

Using the _finddialog foundation class 1

Status
Not open for further replies.

VicTags

IS-IT--Management
May 6, 2002
4
US
This is probably a relatively simple problem but one I’ve been wrestling with for some time now. I have a form with a grid based on a table called “localcallback”. The form initializes as the top level form so as to not have the FoxPro wrapper around it. The user needs a way to search within the table for something like “joe blow.” I added a button on the form called “find” that calls the _finddialog foundation class as follows:

Code:
oFindDialog= NewObject('_finddialog', '_table.vcx') 

WITH oFindDialog 
  .cAlias = ‘localcallback’
  .lFindAgain = .T.
  .Show()
ENDWITH

When I click the button the screen displays for a split second and then disappears. I also tried just calling the method with static values:

Code:
oFindDialog= NewObject('_finddialog', '_table.vcx') 

WITH oFindDialog 
  .cAlias = ‘localcallback’
  .cFindString = ‘joe blow’
  .lFindAgain = .T.
  .DoFind()
ENDWITH
Thisform.refresh

But again nothing happened. If someone knows of a way I can make a find dialog appear or simply use the base class to do it for me I would be much appreciative.

VicTags
 
oFindDialog= NewObject('_finddialog', '_table.vcx')

WITH oFindDialog
.cAlias = ‘localcallback’
.lFindAgain = .T.
.Show(1)
ENDWITH



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top