08-13-2009 10:49 AM
Argh... This is infuriating! It's blatantly something glaringly obvious. 😞
Anyway, I might as well put up all the code in a way that can be used/tested by someone else.
08-13-2009 11:06 AM
Full Discloser: I can't look at your code
But maybe this will help.
In Thoric's code you will see that he has resized the property node.
When you have multiple properties in a single node LV will execute them from top to bottom. So his code set the number of rows BEFORE getting the width and height.
In your code
You have used two property nodes and there is no data flow forcing the execution order. When not explicitly forcing the order LV will evaluate all nodes and operators that have no data dependencies first. This means that your Width-Height node will execute BEFORE the number of rows is set. If this actuall an issue in your code you can test it by running an error wire from the NumRows to the Width-Height node.
Just trying to help,
Ben