>>Any suggestion on making this code more robust?
>
>Yup. Put the SECONDS clause there. :)
Thanks, I had SET REPROCESS TO 2 SECONDS on top of my master program and I don't why I had this one which was cancelling the SECONDS clause of the first one.
I just removed it from the GetNumero() function since I have the one at the top level.