I will assume you have a form?
Modify your form and from the form control toolbar, just drag the commanbuttons to the form and change the caption.
Or is this a trick question and I'm missing something...
Actually you should create your own navigation bar as a class and use it whenever you need one. Of course there are navigation classes available in the samples which come with VFP, and they should be consulted as to how to code them, but they tend to have a lot of stuff you don't need or want. Just start with a command group, or a container or shape or whatever and add buttons as you want and then save the whole thing as a class and work from there. You might want to stick an textbox in the middle to display the record number or allow the user to enter one for use with a search button. Dave Dardinger
Remember, tryu not to code all your navigation code in the command button itself and especially not in the click event. You;ll regret it once you wish to change things by f.i. moving controls about.
Te best thing to do is create a class that handles data navigation with methods like: First, last, prev, next, save, cancel.
Call this class and its method from your navigation buttons.
In my crownbase application I created a business object that handles all those things. Just have a look at it it might give you a good hint.
(See link below)
It is located in: Classlibrary: busobj_lib Class: bu_obj.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.