Hi,
I have a form that will have a few "lookup" forms that will be opened and hidden quite often. So, I prefer to instantiate these "lookup" forms in the INIT of the parent form. Here is how I tried it:
thisform.NewObject( "LookupForm1", "LookupForm1", "MYLIB.VCX")
The error I get is "Object class is invalid for this container"
What am I doing wrong?
TIA
UPDATE: Decided to change the approach:
Created property oLookupForm1 and then in the INIT of the parent form instantiate it as:
thisform.oLookupForm1 = CREATEOBJECT( "LookupForm1" )
Then, in Destroy method, set value to NULL.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham