>I got the error message of "error instanitiating the object" when I try to add an object to the current pageframe.
>
>The syntax I used was this.AddObject('cMyObject','cMyClass')
>
>cMyClass is a class that exists in the SET CLASSLIB statement. The same AddObject method call works for most other classes (some are in the same class library file) in the app.
>
>Anyone can help?
>
>Thanks.
9 out of 10 times I've seen this error it's because the class being instantiate has at least one control that is attempting to bind to data that doesn't exist.
Verify that any data bound controls have their ControlSource's entered correctly and that those fields actually exist and are available.
Insanity: Doing the same thing over and over and expecting different results.