04-03-2012, 05:49 AM
Hello,
I am trying to create a function that creates different web objects: Bowsers, Links, etc...
I am using DP.
Input to my function are the following three parameters:
1. The type of object (like "BROWSER")
2. One of the object's descriptive Properties (like "title")
3. The value of the Descriptive Property (like ("Home"))
However, the function hangs when reading the Descriptive Property value: o("title"). It just doesn't take the parameter I am passing in the function, p.
What can I do to feed a parameter instead of the actual property?
THANKS!!
I am trying to create a function that creates different web objects: Bowsers, Links, etc...
I am using DP.
Input to my function are the following three parameters:
1. The type of object (like "BROWSER")
2. One of the object's descriptive Properties (like "title")
3. The value of the Descriptive Property (like ("Home"))
Code:
Public Function createSingleObj(t, p, val)
Set o = Description.Create
o("micclass").Value = t
o(p).Value = val
Set createBrwsrObj = o
End Function
However, the function hangs when reading the Descriptive Property value: o("title"). It just doesn't take the parameter I am passing in the function, p.
What can I do to feed a parameter instead of the actual property?
THANKS!!