Error in returning Group name after having removed

Sep 3, 2013 at 8:41 AM
Dear Sir,

I have a problem about "returning the group name by using the function: Legend.ItemByHandle(i).TEXT.
When a group is add in the first time, the itembyhandle(i).Text can return the group name properly. However, after the group is removed and added again. The ItemByHandle(i).TEXT cause error. It returns null.
Could you help me?