Grazie Ippo... infatti è proprio quello su cui stavo ragionando... il risultato che ottengo è giusto ma sto andando sulla strada sbagliata...