Statistics of magnetic field measurements in OBA stars and the evolution of their magnetic fields