PowerBuilder ‘Gotcha’ – Enabled Property on Controls

Posted on Tuesday, April 24th, 2012 at 5:28 pm in

I’m writing a generic datawindow processor service to look at the controls on any given datawindow.  I’m using the Getobjectatpointer method to give me the name of the current control (dwo.Name can be used as well) but I can’t get anything for a single control.  Hmmmm….

To make things more interesting it’s a PB generated computed column I’ve placed in the header of a sample datawindow; it shows the current date.  All my other columns and objects, including other computed columns, work fine.  Bug I’m thinking.

So I post on the Sybase Community Forums for help.  Thanks to Chris Pollach for the answer; the field’s Enabled property is set to False.  Since it is not enabled it cannot have focus and you cannot select it.

Top