Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a type from a reference
Message
From
26/11/2015 11:28:52
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627909
Message ID:
01627922
Views:
30
>I think you just need to provide the full assembly name. See the overloads for Type.GetType():
>https://msdn.microsoft.com/en-us/library/system.type.gettype(v=vs.110).aspx
>
>Update. e.g: http://stackoverflow.com/questions/3512319/resolve-type-from-class-name-in-a-different-assembly

Thanks, this is great.

The update is as follow:
loType = Type.GetType(cAssembly + "." + Trim(loRow("List1")) + "," + cAssembly)
loList = Activator.CreateInstance(loType, loParameter)
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