To add a little to Craig's answer, if you pass the calling form as an object
obb = CREATEOBJECT("Myclassfrm",thisform,"Para2")
the 'thisform' object can be used to update any property on the calling form.
Make a property on the new form to hold the value.
If the property is "oCallingForm", then
thisform.oCallingForm.ValueINeed = thisform.ValueIWantToReturn
HTH
Barbara
>I have a form that needs to return a value to the calling program. I have made it into a class and wish to activate it with CREATEOBJECT().
>
>I know how to return a value from a form:
> DO form MyForm With Para1,Para2 to return_value
>
>But how can I do this if the form is saved as a class??
>
>obb = CREATEOBJECT("Myclassfrm","Para1","Para2") but how to return a value??