>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?
You're right. I didn't think about that. Thanks