You cannot receive a value in this manner. What you can do is to add a public property to the class and have the property initialized by the object. It cannot be from the Unload event however, since this event is fired when the object is destroyed, so the property won't exist after that. Then, just before releasing the object, you read the property from the calling function. It goes like this:
Myform = Createobject (MyformClass)
Result = Myform.mystring
Myform = NULL
HTH
>I have a class based on a form; in the unload event of this class, I have a return statement (return "mystring")
>
>When I instantiate the class, how can I get the returned value?
>
>Myform = Createobject(MyformClass)
>
>and then what?