Servo (PAN) and Parallax Ping)))

I would like to be able to measure distance during the servo movement (0-180°) and i can't !!!

Possibly because you never move the servo in loop().

I think i can do it using a for loop which include the "void loop()", one for 0-180 and the other for returning from 180 to 0.

What's the problem when you do that?

could you help me telling me where i could write my FOR loops (from 0-180) and 180-0) during the distance measures ?

You don't do the for loop during the distance measures. You do the distance measures in the for loop.