Can someone tell me how to Override the HtmlTable Class defined in silk install folder "extend\htmlpage.inc". I do not want to ignore the one defined there just add a few of my own functions to it. I do not want to add the code in the htmlpage.inc file but add it to our automation harness so everyone can use it.
What I did was create a file called WinClass01.inc which overrides the HtmlTable winclass, see below. It works great and no errors are encountered.
The problem is when I added my file winclass01.inc to the "use files" section in my Runtime options, it no longer compiles. Silk reports that the HtmlTable has already been defined in htmlpage.inc.
Am I doing something wrong? I thought you could override classes when ever you wanted to add member variables and functions etc. Any Ideas?
Use Files Value
Use Files: extend\explorer.inc, winclass01.inc
My Override code for HtmlTable
winclass HtmlTable : HtmlTable
LIST OF STRING GetColumnNames()
Re: Override HtmlTable Class defined in htmlpage.inc
I was trying to use a subclass so I would not have to change all the tests we already have and to make it easier and less confusing to have multiple declarations for the same control. Some people who use silk at my company at novice users and I am trying to make the change as invisible to them as possible.
Re: Override HtmlTable Class defined in htmlpage.i
Thank you for the suggestions but I am not trying to override existing HtmlTable functions just the class. I want to be able to add new functions that we need here that Silk does not have a function for.