Switches with means for setting or mechanically storing a multidigit number