Hi,

I think you will have to TO_CHAR your number id

eg.

comp_list := comp_list || TO_CHAR(compid) || ',' ;

Regards