Micro Focus QTP (UFT) Forums
Passing the object list as the argument - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Passing the object list as the argument (/Thread-Passing-the-object-list-as-the-argument)



Passing the object list as the argument - arun2kindia - 07-28-2009

Is it possible to passing the couple of objects as the arguments? if so please give me an example.


RE: Passing the object list as the argument - manabh - 07-28-2009

Yes...sure....you can pass objects as arguments...
Code:
x = SetText(Browser(B).Page(P).Frame(F).WebEdit(WB), "abcd")


Code:
Public Function SetText(pObj, pText)
   If pObj.Exists Then
      pObj.Set pText
   End If
End Function