You asked

Leica m d typ 262 vs leica m p typ 240?

Here is what the site says about that.

From Leica M-P (Typ 240): Leica M-P (Typ 240): A rangefinder by Leica with a 24-megapixel full frame sensor, announced in 2014. A Typ 240 with a bigger buffer, a sapphire-glass screen and no red dot. Specs - Maker: Leica - Mount: Leica M - Sensor: Full frame, 36 x 24mm, crop factor 1.0 - Resolution: 24 megapixels - Stabilisation: none in the body; use stabilised lenses for slow shutter speeds - Announced: 2014 - Type: rangefinder Focal lengths ...

From Leica M-D (Typ 262): Leica M-D (Typ 262): A rangefinder by Leica with a 24-megapixel full frame sensor, announced in 2016. No rear screen: a digital M that works like a film one. Specs - Maker: Leica - Mount: Leica M - Sensor: Full frame, 36 x 24mm, crop factor 1.0 - Resolution: 24 megapixels - Stabilisation: none in the body; use stabilised lenses for slow shutter speeds - Announced: 2016 - Type: rangefinder Focal lengths on it ...

Quoted from this site's pages.

From these pages