Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code in a form's next method
Message
From
20/02/1998 08:37:25
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00079716
Message ID:
00080065
Views:
25
>I just finished Dave Lehr's article on "Using Toolbars in Visual Foxpro". He suggests that the "Next" button on the toolbar should fire the "next" method on the active form.
>
>Does anyone have any sample code for this? I am unsure how aware the "next" method (of the form) should be of its tables. Any help or a pointer to a resource would be greatly appreciated.


Evan, here's another idea for you. I use a Toolbar that contains a button class that has Add, Edit, Back, Next, Find, etc. I put the code for the Next and Back options in the Click Method of the button. I make it standard so it will work for any alias. Then in any of my forms I just make sure I have always selected the current table. This is usually done in the Activate or Refresh methods. The advantage of doing it this way for me is that I can drop my Toolbar on any of my forms and it works. My forms do all come from a Form Class that contains a few variables needed for the Toolbar. But other than that, it works really good. If you need an example of any of this, let me know. Hope this is helpful.

John
John Henry
State of Michigan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform