When your company receives your H1 approval from USCIS, you have changed from F1 to H1.You will quit school at that time and start working for the petitioner(the company that sponsors) to maintain legal H1 status.