The lock (9) is mounted between the running carriage on one side and the guide rail on the other. The guide rail has a detent nose (11) to catch in a recess (10) of the running carriage. The sliding wall hangs from a support axis (31) by a support and guide element (2). A locally fixed setting device on the guide rail biases an operating member to lock the sliding wall element directly or indirectly with the guide rail.