third_party_content:community:commentary:revdevx:16402.5689236111

The new STYLE_N property

Published 26 NOV 2012 at 01:39:15PM

If you've ever had to work with the STYLE or STYLE_EX properties in OpenInsight you've probably had to write some gnarly code like this to get around the strange way it returns a string containing a C-style hex representation such as "0x8234ABDB":

style = iconv( get_Property( object, "STYLE" )[3,8], "MX" )

We'll probably never know the reason the original authors of OpenInsight decided to implement the property like this, but with version 10 we've provided a pair of new properties called "STYLE_N" and "STYLE_EX_N" that return the numeric (decimal) representation of a control's style directly thereby saving the need for the extra parsing.

Comments


At 26 NOV 2012 08:59PM Matt Crozier wrote:

Hallelujah! ;)

Original ID: revdevx.wordpress.com/?p=234
  • third_party_content/community/commentary/revdevx/16402.5689236111.txt
  • Last modified: 2024/01/29 20:23
  • by 127.0.0.1