Ok, let's start eliminating the obvious.
Is the function and Char on the same event sheet?
I just did this and it worked as expected.
+ Button: On clicked
-> Button: Set ButtonVariable1 to Functions.DoSomething
-> Text: Set text to Button.ButtonVariable1
* On function 'DoSomething'
-> Functions: Set return value "This is the return value"