Hi Paolo,
If you pass the string byval, it will work. I will remedy this problem, which I suspect is between the function returning the string and the expectation of a string parameter to be passed byref.
class user
s2 as string
method setString(byval s as string)
s2=s
end method
end class
or simply:
class user
s2 as string
method setString(string s)
s2=s
end method
end class