get dynamic properties of an object 
Author Message
 get dynamic properties of an object

Hello all,

i have maybe an easy problem, but i don't kown how to do.
I have an ADSI / IIS object and i want to get different properties in one
I will explain it in an sample

dim myiis, myvar, myprop
set myiis = getobject("IIS://localhost")
myvar = "MaxBandwidth"

myprop = myiis.<myvar>
               ^^^^^^^ what is the right syntax?


Andy Lucas
NewsGroups Suchen, lesen, schreiben mit http://www.*-*-*.com/

Fri, 28 Mar 2003 03:00:00 GMT  
 get dynamic properties of an object
To get the MaxBandwidth for the first IISWebServer Object in your IIS

Set IIS = GetObject("IIS://LocalHost/W3SVC/1")
 MsgBox IIS.MaxBandwidth
Set IIS = Nothing

Code is untested but should work Ok.

Dominic Marks

Fri, 28 Mar 2003 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Form Dynamic property , app Dynamic property ?

2. COM Object Dynamic Properties / Arguments

3. Objects with dynamic properties (INI parsing)

4. Objects with dynamic properties (INI parsing)

5. Problem with getting properties of the window object

6. Getting the caption property from a field object in VBA

7. Problems while getting properties of Document.Range - Object

8. Property Gets don't work in an RDS object

9. Getting a list of methods and properties from an OLE Object in VB

10. Getting Unknown Objects Properties in VB

11. Getting the properties of an Object

12. How to assign an expression to a dynamic property in vbscript


Powered by phpBB® Forum Software