I have a situation with existing code in classic ASP where a previous developer instantiated multiple instances of an object to be used in the web page. See code below
Could this be accomplished in a better way by doing this instead? See below
Please advise... Thanks
regards,
Brian
Code:
Set objRO = Server.CreateObject("SampleObj.ClassNameHere")
Set objRO1 = Server.CreateObject("SampleObj.ClassNameHere")
Set objAuth = Server.CreateObject("SampleObj.ClassNameHere")
Could this be accomplished in a better way by doing this instead? See below
Code:
Set objRO = Server.CreateObject("SampleObj.ClassNameHere")
Set rs1 = New objRO
Set rs2 = New objRO
Set rsAuth = New objRO
Please advise... Thanks
regards,
Brian