Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling option buttons
Message
 
 
To
24/05/1999 17:09:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00222237
Message ID:
00222279
Views:
34
Randy,

If both the combobox and the optiongroup are inside the same "container", the page in your case, use this.parent.txtOption.Enabled = .f.

FWIW, txt is usually used as an identifier for TextBox objects. opg is used for OptionGroups. The help file lists these in the Naming conventions topic.

>Hi... I am working with VFP6 and want to disable an (entire) option box from the click event of the Combo Box right before it.
> Having trouble with the syntax. thisform.txtOption.disabled=.t. gives me an error message that my option group could not be found.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform