40. Power to modify permission to develop.

(a) where the development relates to carrying out of any building operation or other operation, no such order shall affect such of the operations as have previously been carried out, or shall be passed after these operations have substantially progressed or have been completed;
(b) where the development relates to a change of use of land, no such order shall be passed at any time after the change has taken place: