Hey all.. I was wondering if anyone happened to know of a way to simulate Reflection in Classic ASP... Basically, I have a COM DLL with a bunch of properties.. There are 7 of those properties which I am interested in, Option1, Option2, Option3, etc..
I would like to be able to access those properties inside a FOR loop. I have a similar page in .NET and implemented Reflection in order to solve this issue.
I tried to use the Execute command, but it doesn't grab the value. I used the following code:
This wrote out nothing to the screen. However if I response.write(comDLL.Option1), that returns the value. Any ideas on how I can approach this?
I would like to be able to access those properties inside a FOR loop. I have a similar page in .NET and implemented Reflection in order to solve this issue.
I tried to use the Execute command, but it doesn't grab the value. I used the following code:
Code:
dim varName
dim i
for i = 1 to 7
varName = Execute("comDLL.Option" & i)
response.write (varName)
next
This wrote out nothing to the screen. However if I response.write(comDLL.Option1), that returns the value. Any ideas on how I can approach this?