>>Well, depending on which overload you use to instantiate your class, either oApp is Nothing or oProcess is Nothing. So, in your GetSchema method, you could check for that and if oApp is Nothing, use New Framework.Data(oProcess) and vice versa.
>
>Exact, but if the declaration is within a condition, the designer does like that very much. :)I can get it to work ok in C# ... there's probably some way to get it to work in VB too. The trick in C# is to define it before the condition. So, I'd have something like this:
FrameWork.Data oFrame;
if (oApp == null)
oFrame = new FrameWork.Data(oProcess);
else
oFrame = new FrameWork.Data(oApp);
I'm sure there's a similar syntax in VB, isn't there?
~~Bonnie