Lists and strings and classes

I have a class that contains a list as one of it's private members. I'd like to have a function, say class.RetrieveElement(index$), that retrieves an item from this list and returns that element to the user. Or, worst case scenario, I would pass the variable to store the element of the list in as the second variable. So my syntax would either be:
x$ = class.RetrieveElement(1);
or:
class.RetrieveElement(1, &x$);
Now the element will be a string, and I can't seem to get the value out of the class. No matter what I do, x$ always ends up being the address of the element, not the value of the element. Please help!
x$ = class.RetrieveElement(1);
or:
class.RetrieveElement(1, &x$);
Now the element will be a string, and I can't seem to get the value out of the class. No matter what I do, x$ always ends up being the address of the element, not the value of the element. Please help!