mysterious error: RUNTIME ERROR '451'

Does anyone have any ideas about the following error

Runtime error '451':

Property let procedure not defined and property get procedure did not return an object.

I get this in message in a popup when I call a function on a custom class.  The function is supposed to return a boolean value if the code it contains executed successfully.  It is used in a manner similar to the following:

'In an ordinary module

Dim myClassInstance as myClass
Dim success as boolean

set myClassInstance = new myClass
success = myClassInstance.SomeFunction  'NOTE:  Here is where the debugger takes me

'In the class module

'Class declaration
Public Function SomeFunction()
     functionOK = False
     if (test = True) then
          functionOK = True
     end if
     SomeFunction = functionOK
End Function

Thanks for any suggestions,

J



Answer this question

mysterious error: RUNTIME ERROR '451'