Professional Documents
Culture Documents
Syntax: RepositoriesCollection.Add(Path)
Ex: RepositoriesCollection.Add(E:\OR\ObjRes.tsr)
2. Add the object repository at runtime by using AOM (Automated Object Model)
Ex:
Dim qtAppn
Dim qtObjRes
qtObjRes.Add "E:\OR\ObjRes.tsr", 1
The above example Add the Object Repository(ObjRes.tsr) to the "Login" action in Test2.
End Function
sTsrMap = "C:Bottom.tsr"
Dim sTsrMap
sTsrMap=Array(“C:1.tsr”,”C:2.tsr”)
Next
4. The following example clears the run-time list of associated shared object repositories and then
use the Add method to add the specified object repository to that list.
RepPath = "\MercurySORSMySharedObjectRepository.tsr"
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(RepPath)
Pos = RepositoriesCollection.Find(RepPath)
RepositoriesCollection.Remove(Pos)
RepositoriesCollection.Add(RepPath)
Pos = RepositoriesCollection.Find(RepPath)
5.Another way:
' Launch
qtApp.Launch
' Get the object repositories collection object of the action ' Add MainApp.tsr if it's not already in
the collection