There is no need to introduce a delay, simply do
lcMyName = sys(2015)
do while lcMyName == sys(2015)
lcMyName = sys(2015)
enddo
return lcMyName
It's faster and "error free" (asuming a program can be error free).
>I had the same problem with creating lots of random numbers, I had to stick a random delay in seconds in the loop. This solved the problem.
>
>Many thanks for reminding me
>
>:)