ho testato la tua soluzione ed è ok.
grazie