R.Wieser
2022-02-05 12:41:42 UTC
Hello all,
I've written a simple array-type object, and would like to be able to set a
default getter and setter for the object. IOW, instead of (in VBScript)
writing
MyArray.SetField(3,2) = "42"
wscript.echo MyArray.GetField(3,2)
I would be able to use (something like)
MyArray(3,2) = "42"
wscript.echo MyArray(3,2)
Although I've seen the "default action" possibility somewhere (Python IIRC),
I do not even know if its possible in Windows (win32).
Question: Is it possible to define (in the typelib?) a default action
(method, property) for an object ? And if so how ?
Regards,
Rudy Wieser
I've written a simple array-type object, and would like to be able to set a
default getter and setter for the object. IOW, instead of (in VBScript)
writing
MyArray.SetField(3,2) = "42"
wscript.echo MyArray.GetField(3,2)
I would be able to use (something like)
MyArray(3,2) = "42"
wscript.echo MyArray(3,2)
Although I've seen the "default action" possibility somewhere (Python IIRC),
I do not even know if its possible in Windows (win32).
Question: Is it possible to define (in the typelib?) a default action
(method, property) for an object ? And if so how ?
Regards,
Rudy Wieser