Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with searching records in grid
Message
 
To
24/03/2004 19:47:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00888425
Message ID:
00889519
Views:
15
I think somewhere in Your form (that w/ grid) You fire DO FORM findrec..., You must change that commmand like that:
DO FORM FindRec WITH thisform ... && Ofcourse must place that parameter in last position (if you have other parameters)
In FindRec form
must add a property frmWithGrid
In init method:
  LPARAMETERS frmWithGrid
  IF TYPE("m.frmWithGrid") # "O"
     thisform.frmWithGrid = NULL
  ELSE
     thisform.frmWithGrid = m.frmWithGrid
  ENDIF
In that method where you do actual search
 LOCATE... (SEEK...) ...
 IF .NOT. ISNULL(thisform.frmWithGrid)
    thisform.frmWithGrid.Grid1.Refresh()
 ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform