Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overload design when two different types of object
Message
From
05/09/2006 21:16:54
 
 
To
05/09/2006 21:08:38
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01151161
Message ID:
01151180
Views:
42
>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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform