lol assuming its a listbox or a editbox

did -a $dname ID will keep adding a new line

did -ra $dname ID will keep erasing old info and adding new info while -a alone keeps adding a new line.