styles
Submitted by jonathan on Wed, 06/25/2008 - 15:08
Problem:
You have a component which supports a style and you want to check if the style has been set in a style sheet or on the component directly.
Solution:
When you get the value of the style, you need to store it in an untyped variable. This will allow you to check for undefined. If you store the value in an int, uint or Boolean, for example, it will be converted from undefined to the default value of that type (0, 0, or false, respectively).
