hansvanhalteren
Posts: 1
|
| Posted: 09/25/2007, 1:02 AM |
|
I have a grid showing:
booktitle
bookauthor
bookdescription
All three are textitems
I create a grid but instead of showing the contents of the description field, I want to show a button when the descriptionfield has data and hide the button when the description field is left empty/
I read the help file and it states that the button.visible status can only be changed in the parent object of the button. (check button -> reference -> visible).
So I put this in the parent's before show:
if len(ams_categories_lit_book1.description.Value)=0 then
ams_categories_lit_book1.Button1.visible=false
else
ams_categories_lit_book1.Button1.visible=true
end if
This doesn't work. What happens is that no button is showed.
If I place the same code in the beforeshow of the button then all the buttons are shown even if the descriptionfield is empty.
What am I doing wrong ?
I am using CodeCharge 3 personal.
Thanks
Hans
|