i think code sensitive to QTP 9.X version. conclude you are using later.
instead of old codes, add the object repository code at the start of the function like
before that ensure all objects used in functions are added and stored in the shared object repository. (like C:\sh.tsr)
and you can try other ways also.
instead of old codes, add the object repository code at the start of the function like
Code:
RepositoriesCollection.Add "C:\sh.tsr"
before that ensure all objects used in functions are added and stored in the shared object repository. (like C:\sh.tsr)
and you can try other ways also.