The Problem is, that the the button doesn’t work in the planned way. If I push the printed Button, the thing in the clipboard is (instead of the String saved in “zahlL”):
zahlL$18424
If I use only the Print-command and delete the Return[zahl], it works fine.
Is there a possibility, how to make work both, the Return and the Print in combination?
The little program was just an example. You changed in way, that doesnt answer my question. The two variables in Button are both local defined. If possible, this shoudnt be changed. But if there is no such solution, I put the value of the local “zahl2” in the global “zahl3”, then it works.
@Kuba: Sorry, I didn’t explain well my problem before. I didn’t want to have dynamic content in the Button, only the content of a local variable at one time. But thx for the hints. My english is really bad, so its not so easy for me to say what I want to say