I've created a form class that has a custom property to store a string. I'd like to pass this string back to the code that instantiated a from using the CREATEOBJECT() function. I've tried the following code but cannot get the return value.
ofrmTest = CREATEOBJECT("frmparam", "string1", "string2")
ofrmTest.Show()
lcChanged = ofrmTest.cReturnValue
ofrmTest.Release()
It appears that the form object, ofrmTest, does not exist when I try to assign the variable, lcChanged.
Any ideas where I may be messing up?
TIA to all that reply.
Regards,
Mike