Auto display maximum dozen after input maximum lot

Yes.

what is the content of somearray()?:frowning:

That is sample code demonstrating the technique involved. It is not especially customized to fit your own specific situation.