General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only