Page 1 of 1

Extend IE COM Object

Posted: 06 May 2017, 21:03
by c4p
Is it possible to add a new method to IE COM object. I found the workaround to allow this behaviour for simple array. I tried to implement it similarly without success.

Code: Select all

wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True

; Define the base class.
class _Array {
    newmethod() {
        msgbox Yes I'm the new method!

; Redefine Array().
Array(prm*) {
    prm.base := _Array
    return prm