T
tekanet
Hello folks!
Please don't try to crucify me.. I wonder if it's possible to create
an object by its name, passed in a string. Example:
I have some reports and a wrapper class that shows them. This way:
Dim rptDummy As New Report
Dim sReport As String
sReport = Request.QueryString("REPORT_NAME")
Select Case sReport
Case "rptReportOne"
Set rptDummy = rptReportOne
Case "rptReportTwo"
Set rptDummy = rptReportOne
And so on..
I'd like to do something like this:
Dim rptDummy As New Report
Dim sReport As String
Set rptDummy = SOMETHING(sReport)
Any ideas? TIA, tK
Please don't try to crucify me.. I wonder if it's possible to create
an object by its name, passed in a string. Example:
I have some reports and a wrapper class that shows them. This way:
Dim rptDummy As New Report
Dim sReport As String
sReport = Request.QueryString("REPORT_NAME")
Select Case sReport
Case "rptReportOne"
Set rptDummy = rptReportOne
Case "rptReportTwo"
Set rptDummy = rptReportOne
And so on..
I'd like to do something like this:
Dim rptDummy As New Report
Dim sReport As String
Set rptDummy = SOMETHING(sReport)
Any ideas? TIA, tK