I’m using the WebSDK. In the SetupCSS event, I want to manipulate the assigned WebStyle in the Style property. This is the code:
[code]Sub SetupCSS(ByRef Styles() as WebControlCSS)
IF ME.Style <> NIL THEN
DIM myStyle() AS WebControlCSS = WebControlCSS.Convert(ME.Style)
FOR EACH CSSstyle AS WebControlCSS IN myStyle DIM Properties() AS String = CSSStyle.PropertyNames //shown as NIL in the debugger (for whatever reason nil, it's an array of strings after all...) DIM content AS String = CSSstyle.StringValue //shows the entire css class in the debugger //Do some stuff here Styles.Append CSSstyle NEXT
However, the array Properties() is always empty, even though the debugger clearly shows that the WebControlCSS variable does have contents. What am I doing wrong?