10-11-2010, 05:53 PM
(This post was last modified: 10-11-2010, 05:54 PM by SaranKumarV.)
Hi All,
I am trying to add new object to object repository in run time with the following code resulting "error : R6025 -pure virtual function call" please help me on this.
Regards,
SaranKumarV
I am trying to add new object to object repository in run time with the following code resulting "error : R6025 -pure virtual function call" please help me on this.
Code:
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load "c:\testrep.tsr"
Set PageObj = RepositoryFrom.GetObjectByParent("Browser(""Google"")","Page(""Google"")")
Set CustomObj = Browser("Google").Page("Google").WebButton("micclass:=WebButton")
RepositoryFrom.AddObject CustomObj, PageObj
RepositoryFrom.Save
Set RepositoryFrom = Nothing
Regards,
SaranKumarV