RegisterUserFunction - Where do you include them?
When you have a Function that needs to be Registered and have another Function or two that calls this RegisteredUserFunction, where do you put your RegisterUserFunction code? Is it included in your script or in the function calling the Registered function?
Will this help you
Technology Tree: QTP - RegisterUserFunc
Vbscript lacks ploymorphism(overriding and overloading) so qtp provided a tweak for overriding in name of registeruserfunc
Does RegisteredUserFunction() also have to do with the keyword view of QTP? I think that it will put the function in the keyword list. I have not used the function for a long time.
I think that I included the RegisteredUserFunction in the calling script or I put them in the same .vbs file after I created the function. I think that QTP does not care if they are in the calling script or a .vbs file. I did not put them inside of the function.
Also there is a way to get overloading functionality though vbs doen not support it. Hope it helps
Technology Tree: QTP - Overloading in VBS
I recommend having all these functions in a separate Function Library, with the functions at the top & the Register methods in the End.
Originally Posted by Gilbert