Thank you.
This solution raises a question about programming elegance.
I am displaying a nested hierarchy by padding spaces using a 'TreeDepth' attribute which may be 0-9. Currently I have to write a rule for each level like this (each level is indented by 4 spaces):
If Item.TreeDepth=1 Then
Item.Name4Tree=' '+Item.Name
Is there a way that I could write one rule which will add the required number of spaces according to the TreeDepth?