Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion from C# to VB.NET
Message
From
18/04/2013 09:33:44
 
 
To
18/04/2013 09:25:11
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:
01571327
Views:
35
>>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.
>

(1) I think you need to change App.oApp.Tables - if memory serves

(2) 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


You need to replace the App.oApp.Tables p[roperty with a new instance, ie the same class but another instance
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform