PropertyManagerPageNumberBox Strange Problem

This ones got me flummoxed!   I'm populating a Property Manager Page with my custom properties and its all good apart from one numberbox.

The Length one highlighted below.  It's the second in the loop so I naturally thought  I may have been overwriting it so I traced it right through

Whats even stranger is that when I uncomment the line that overrides it to 999, it worked once, but look at this trace below.

There's something pretty fishy goin on.  Has anyone had similar problems with these before?

SolidworksApi macros