lcId = SYS(2015) + PADL(Application.ThreadId,5,"0")Actually I think you might need 6 characters - I frequently get 5 digit values in the upper 5 digit range. In theory threadID is a DWORD so that number COULD get VERY large. In reality though I've never seen a 6 digit threadID - anyone?
>>lcId = SYS(2015)+TRANS(Application.ThreadId) >>>>
>lcId = SYS(2015) + TRANSFORM(Application.ThreadId, "@L 99999") >