Hi Ramil,
We use a combination of SYS(2015) and a random number:
SYS(2015)+PADL(ALLTRIM(STR(INT(RAND()*100000))),5,"0")
Make certain you have rand(-1) in your startup code.
We have never had a duplicate value although even then it is still possible.
Hope this helps,
Tim
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only