Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CommandGroup Array?
Message
From
25/07/1998 02:02:00
 
 
To
25/07/1998 02:00:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00121314
Message ID:
00121315
Views:
11
Sounds like a WITH...ENDWITH construct would not be out of line. How about the following:
WITH THISFORM.CommandGroup1
   .Cmd1.Enabled=.T.
   .Cmd2.Enabled=.T.
   (etc)
ENDWITH
>I have a command group with a dozen command buttons. How can I reference these in an "array stle" method. I want to disable the command buttons based on a certain criterai. In other words...
>
>For i = 1 to 12
> if i = 7 && Example
> thisform.commandgroup1.cmd7.enable = .f.
>endif
>
>
>What do I replace the "thisform.commandgroup.cmd7.enable" with to disable the seventh item of the command group???? Thanks for your help.
>
>j. flick
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform