I know you can use the command "RepositoriesCollection.Add" to associate a repository toa script during run time.
Is there a way to add a function library to your script during run time?
It's not possible to add libraries as resources during runtime. You will have to manually add them if that's what you're trying to do..
However, you can use ExecuteFile/ExecuteGlobal instead - you can find more information about both if you search the forums or look for them in QTP Reference.
Hope this helps.
You could have searched the forum before posting this question , there are lot of threads based on it
Certified HP consultant