Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's a commandgroup
Message
From
03/01/2008 09:24:55
 
 
To
03/01/2008 08:39:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01279201
Message ID:
01279212
Views:
10
>In pursuing a thread last week about being able to hide pages in a pageframe, I encountered, for the first time, a CommandGroup.
>
>What's the common usage for a CommandGroup, anyway? At first glance, it seems like a container with commandbuttons inside, with the following differences:
>1) It has a value ( 1 to N)
>2) And a controlsource
>3) The "currently selected" commandbutton has its background color sort of dithered out so that you can tell its been selected.
>
>Are there any other differences of note?

A commandgroup is one of those things that seemed like a good idea at the time. I think it's in VFP for two reasons:

1) to aid in conversion from FP2.x. Every button in an FP2.x screen turns into a commandgroup in a form.

2) because VB had them. And that's because VB didn't have inheritance.

Bottom line. I've never found a reason to use a commandgroup rather than simply putting buttons in a container.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform