Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling specific objects in a Grid
Message
From
09/05/2000 19:07:40
 
 
To
09/05/2000 18:46:01
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00367650
Message ID:
00367903
Views:
32
>>>Hello, i'm a beginner programmer in vfp and is doing my GCE A-Level project >>now. Hope that you can help me. I have editbox-es displaying memo fields
>>>(they are initially disabled) and combo box-es displaying some values. When >>the user select a certain value inside a combo box in a certain row (eg. row >>2), I want to enable the corresponding edit box on row 2 so that the user can >>key in some value. Is there any way to accomplish this? Help will be greatly >>appreciated, thanks in advance.
>
>>Try this in grid.column1.Combo.Valid() (assuming that combobox is in Column1 >and editbox is in Column2)
>>
>>this.parent.parent.Column2.Edit1.Enabled = IIF(this.Value = >myCertainValue, .t. , .f.)
>

You might want to look at the DynamicCurrentControl property as well.

>
>Hi, thanks for your reply. I tried that with my program, however it gave a bug. The entire column of editbox-es is enabled and not the specific one on the row. Is there anyway to go to that specific editbox on the row and enabled it? Thanks in advance.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform