Ok, and how can I change this value via a button?
You can use File Save command: https://lioranboard.ca/docs2/commands/file-ini#filesavenumber