Have you tried using Filter ( ) instead of Substitute ( )?
TextColor ( Get ( LayoutName ) ; RGB ( 100 ; 200 ; 50 ) ) & "¶" &
Substitute ( LayoutObjectNames ( Get ( FileName ); Get ( LayoutName ) ) ; ["¶>" ; ""] ; ["¶>>" ; ""] ; ["¶<" ; ""] ; ["¶<<" ; ""] )
Hi Tom and Keywords,
Thank you so much for your replies. I will try both.
Still, not sure why I am getting those 'chevron' characters? I tried some calculations on a completely new test database without the Substitute part and I didn't get any, just the object names.
The chevrons are part of the normal output of LayoutObjectNames (). They designate that some objects are nested inside other objects. A nested object can occur when you name a group of objects which may contain objects or use object named tabs (which themselves contain named objects).
Named tab controls, grouped objects, and portal objects that contain other named objects are followed by a list of those named objects enclosed in angle brackets (<>).
Well, something else that joins the long list of stuff I never knew...