600 separate button objects?
Why not 600 instances of 1 button object?
All you'd have to do is give them all the variable and on start of layout set the text to the variable.
Then on button clicked check the variable to see the function..
But I might understand it the wrong way..