Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox bug?
Message
From
29/01/2009 09:03:55
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01377798
Message ID:
01378072
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>I have a complex form with multiple pages and containers instantiated on the fly. I have several checkboxes in the container. Depending on some condition I want to be able to make the checkbox enabled or disabled.
>>>
>>>We found a bug there. Once the checkbox is made disabled, it can not be re-enabled again.
>>>
>>>If I use readonly property instead and try to click on the checkbox, the value doesn't change, but the form reports that something was changed.
>>>
>>>Can anyone please confirm this bug or let me know a workaround?
>>>
>>>Thanks.
>>
>>if you doesn't post an bug example I guess none can help you.
>
>I take it as you can not reproduce it for the scenario I described.
>
>Have a pageframe with multiple pages (custom class, don't know if this is relevant). Have a container added in run-time for each page. Have textboxes + checkboxes on the containers (second page in this case where we noticed the problem). Have a button that calls some form and then sets checkbox enabled property using custom method of the container class setfields(tlEnabled).
>
>this.SetAll('enabled',tlEnabled, 'mycheckboxclass')
>
>Originally checkboxes come OK, but then we can not switch their disabled status back to enabled.
>
>With the Readonly property it works, but then if you click on the checkbox, the GetFldState function reports a change.

1. Check that 'mycheckboxclass' have not an Enabled_Assign method.
2. try to set checkbox.Enabled directly, without a SetAll.
3. VFP PAgeframe is an inexhaustible source of bugs
Previous
Reply
Map
View

Click here to load this message in the networking platform