Environment versions
Network:
Windows 2003 Server
>>>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
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