Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery
Message
 
To
12/10/2001 17:00:17
Bill Breay
Custom Business Software
Arvada, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00567983
Message ID:
00568876
Views:
23
Bill,

I'm not sure I understand your scenario completely...however, if you're saying that you are manually adding a new record to the view that drives the CListObjEdit grid, then here's the info you need:

Check out CListObjEdit.cmdAdd.Click()...you can see the code that is necessary for refreshing the UI after a new record has been added...

This.Parent.SetButtonEnabledStatus()
This.Parent.CListObj1.grdList.nRecNo = RECNO()
This.Parent.CListObj1.grdList.SetFocus()

You should at least execute the above code after manually creating a new record...try that first. You may also need to refresh the grid or issue ThisForm.Refresh() to update the display. You shouldn't need to manually requery() the view, because the new record is already in the view!

AT ANY RATE, Whenever you see the view parameter dialog when requerying a view, it always means that the view parameter variable does not exist at the time the view is requeried.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform