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:
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:
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
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