Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Reflection to instantiate a class
Message
From
08/07/2006 14:30:33
 
 
To
08/07/2006 14:01:18
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:
01134699
Message ID:
01134702
Views:
17
The following seems to work:
        Dim loClass As Type = Nothing
        Dim loList As Framework.Framework.List = New Framework.Framework.List
        Dim loParameter(1) As Object

        lcList = oApp.GetProcess("List")
        loParameter(0) = oApp
        loParameter(1) = Me

        Try
            loClass = Type.GetType("List" + lcList)
            loList = Activator.CreateInstance(loClass, loParameter)
        Catch loError As Exception
            oApp.ErrorSetup(loError)
            Return False
        End Try

        loList.ShowList()
        cHtml = cHtml + loList.cHtml
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