pullingteeth
Programmer
I have a boolean field coming into a report; I would like to change the title of a section based on the field.
I currently do this by "displaying" the field, but setting visibility to false; then I have two fields which each of the alternate titles. In the report_activated event procedure, I test the value of the boolean, and set the visibility of one of the alternates to false so that the correct title shows. However, this isn't exactly neat, which leads to my question: how do I change the value of a caption, programatically?
Thanks
I currently do this by "displaying" the field, but setting visibility to false; then I have two fields which each of the alternate titles. In the report_activated event procedure, I test the value of the boolean, and set the visibility of one of the alternates to false so that the correct title shows. However, this isn't exactly neat, which leads to my question: how do I change the value of a caption, programatically?
Thanks