参考:
Public Function GetObjName()
Dim tempstr As String
Set ShowObj = GetObject("AAAA")
For Each obj In objs
tempstr = tempstr + "," + obj.Name
Next
Set ShowObj = Nothing
GetObjName = tempstr
End Function
调用:
Set obj = Server.CreateObject(工程名.类名)
dim tempstr
tempstr = obj.GetObjName
Response.write tempstr