I have the need to test for the existence of a source code class module at run time. Based on text in a document I want to instantiate an object of a particular name but don't want to include all source classes in every distribution.
eg
Case "AZC_WRD"
Set obj = New azc_wrd
Case "AZC_CRT"
Set obj = New azc_crt
I would like to be able to ...
Case "AZC_WRD"
Set obj = New azc_wrd
Case "AZC_CRT"
if classexists("azc_crt") then _
Set obj = New azc_crt
Suggestions?
eg
Case "AZC_WRD"
Set obj = New azc_wrd
Case "AZC_CRT"
Set obj = New azc_crt
I would like to be able to ...
Case "AZC_WRD"
Set obj = New azc_wrd
Case "AZC_CRT"
if classexists("azc_crt") then _
Set obj = New azc_crt
Suggestions?