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:
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
Public Function SomeFunction()
functionOK = False
if (test = True) then
functionOK = True
SomeFunction = functionOK
Why do I get this error upon calling a function (not a Property)? I've googled, but found only one reference to the same code in reference to a C++ project. One site indicates that error '451' means 'Object not a Collection'.
Thanks for any suggestions,
"It is better to light a candle than to curse the darkness." -Chinese proverb