I have an interesting problem when trying to create
rectangles in a datawindow using the datawindow.modify()
function. When assigning names to each rectangle I have
noticed that if you have a dash ('-') in the name it will
draw the rectangle but every rectangle after that you try to
draw will fail I have tried multiple combinations of
including dashes in the names. In the example below, the
first rectangle will draw but the second and third won't.
If I changed the first rectangle's name into an underscore
it will work. It seems like when the datawindow detects a
dash on the first rectangle it comes to all the rectangles
following will fail to draw.

CREATE rectangle(band=detail x='0' y='0' height='40'
width='50' name=AMP2-1 brush.hatch='6' brush.color='8421504'
pen.style='0' pen.width='6' pen.color='0'
background.mode='2' background.color='0' )
CREATE rectangle(band=detail x='2357' y='381' height='50'
width='40' name=AMP6-1 brush.hatch='6' brush.color='8421504'
pen.style='0' pen.width='6' pen.color='0'
background.mode='2' background.color='0' )
CREATE rectangle(band=detail x='2357' y='600' height='50'
width='40' name=AMP9_1 brush.hatch='6' brush.color='8421504'
pen.style='0' pen.width='6' pen.color='0'
background.mode='2' background.color='0' )

Other examples:

1. name = AMP2-1
2. name = AMP6-1
3. name = AMP9-1

rectangles 1 will draw, but 2 and 3 will fail

1. name = AMP2_1
2. name = AMP6-1
3. name = AMP9-1

rectangles 1 and 2 will draw, but 3 will fail

1. name = AMP2_1
2. name = AMP6_1
3. name = AMP9-1

all three will draw

Has anyone encountered this problem? Any help will be
appreciated.