Property or Mehod ?
-
I'm working on active scripting (vb-script) support in my application, so my application must support some COM objects. I familliar with COM but relatively new to dispatch interfaces and vb-script. Hence, I'm wondering whether I should expose an interface of a child/sub object via a propery or via a method. Is there a criteria for using properties / methods? So for example, should I do this:
Dim module Set module = modules.module("<name>")
or this:Dim module Set module = modules.GetModule("<name>")
-
I'm working on active scripting (vb-script) support in my application, so my application must support some COM objects. I familliar with COM but relatively new to dispatch interfaces and vb-script. Hence, I'm wondering whether I should expose an interface of a child/sub object via a propery or via a method. Is there a criteria for using properties / methods? So for example, should I do this:
Dim module Set module = modules.module("<name>")
or this:Dim module Set module = modules.GetModule("<name>")
in COM ,, a property is actually a pair of functions I think you should properties. they make sense..