How can I check the icon filename loaded in a custom dialog?

This might be simple, but I'm not sure what the correct way to obtain this value is.

I'm guessing you need to use:

$gettok($did(dname,id of icon),2-,32)

If you just use $did(dname,id of icon), it returns 0 <filename>