Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buttons class
Message
From
27/02/2010 08:49:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/02/2010 02:38:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01451392
Message ID:
01451416
Views:
102
>Anyone have a class for buttons like add, edit, save, cancel, previous, next, exit?
>
>TIA.

If it is the commands you need, those should be defined at the form level. The form should have a command called .Save() or .OnSave() or something similar; the button click just invokes the form method. That way, a programmer can (for example) skip to the next record by invoking the form method, without knowing what you called the button. You might even decide not to use buttons on every form (very repetitive, ain't it?), relying instead on a toolbar, or menu commands, or both.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform