Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Reference in VB
Message
From
02/04/2001 10:48:09
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
 
 
To
02/04/2001 10:18:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00490916
Message ID:
00490935
Views:
9
>>I need to figure out how to get an object reference from a string name in Visual Basic. I have a function that takes a string parameter, which is the name of an object. I want to be able to reference that object and call one of it's methods. Something like the Eval() function. Any suggestions?
>
>I don't believe that's possible in VB.
>Why not just pass in the object?

Here is what I am trying to do. I am trying to create a COM object that will use the Data Reports tool to generate HTML pages that can be printed. I will call this from ASP pages with some parameters to grab the data I need and then run the report out to an HTML page. I have it all working, but I would like to be able to simply create the new report and add it to the project without have to code in a SELECT CASE for every report I add. It seems like there should be a way to do this, even Java has a ClassForName method to do this kind of thing.
--Shane
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform