>form.load() > if !dodefault() > return .f. > endif > this.NewObject('myName','myClass') > return this.myName.myMethod() >>Is there any reason I should not add an object to a form in the Load() method?
LOCAL loX lox = NewObject("myName", "myClass") RETURN lox.myMethod()If you want to use methods of myClass at other times during the life of your form then you want to use AddObject.
This.AddObject("myName", "myClass")pamela