OK, this is what is happening on my end.
I'm using PB 6.5 and the datawindow is of type RichText Presentation style.
When I created the datawindow, all fields in the sql are displayed in the datawindow. So, if I export the object then the visible property is set to "1". In my code I'm trying to conditionally reset the visible property to "0". When I do this and run the application, I get the following error when it reaches the line of code to set the visible property to "0":
This program has performed an illegal operation and will be shut down.
Now if I export the object and set the visible property to "0" and reimport it, in my code I'm able to reset it to "1" and not get an error during runtime. The above error only occurs when I try to set the visible property to 0(zero) and the exported objects visible property is set to 1.
Also, whenever I change anything in the object it will always reset the visible property of my column back to 1.
This is my modify() statement in my code:
dwo.Modify("col.visible=0"
Why am I getting the error when I try to set the visible property to 0(zero)? When I try to righ-click on the input field, there is no tab with options to set the visible property like it does on non-richtext presentation dw's.
Your help will be greatly appreciated.