Hi. I'm wondering how to determine the type of a object-variable at runtime. I would like to get the class name, if possible.
for instance:
dim oObj
set oObj = server.createObject ("ADODB.Recordset"
dim sName
sName = GetObjectType (oObj)
I'd like sName to read "ADODB.Recordset" after that call.
Obviously I've invented 'GetObjectType' here, so I'm wondering how to implement that function ;-)
Thanks for any info you might share with me.
for instance:
dim oObj
set oObj = server.createObject ("ADODB.Recordset"
dim sName
sName = GetObjectType (oObj)
I'd like sName to read "ADODB.Recordset" after that call.
Obviously I've invented 'GetObjectType' here, so I'm wondering how to implement that function ;-)
Thanks for any info you might share with me.