Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
18/04/2013 09:25:11
 
 
To
18/04/2013 02:35:02
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571173
Message ID:
01571325
Views:
40
>I said to use a tmp variable - not a tmp class

Well, in order to copy something into something, both entities have to be the same definition. In my case, oProcess.oApp.Tables is a NameObjectCollectionBase class and this is what I need to copy. For some kind of reason .NET does not want to allow me to do that. I have made a perfect copy but only changed the name. That did not work. I also copied the entire structure and assigned new names. This also did not work.

If that would work, that would be the resolution I am looking for. That also does not require a lock. This would be perfect. There has to be something I do not understand. Have you tried to make a NameObjectCollectionBase small class, such as copying my code, and try to copy that into another one and them make the copy?

>You instantiate a new Tables(), popuplate it, then assign it to App.oApp.Tables

True

>Before assigning the new instance - everyone will access the 'older' version. After assigning it, every one will acces the newer version

True
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
Next
Reply
Map
View

Click here to load this message in the networking platform