Micro Focus QTP (UFT) Forums
Parameterizing Function arguments - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Parameterizing Function arguments (/Thread-Parameterizing-Function-arguments)



Parameterizing Function arguments - rajpes - 07-08-2011

I read the below line in qtp help.
"
You cannot use the Data Driver to parameterize the values of arguments for
user-defined methods or VBScript functions.
"


Now what exactly it means? i created a function like below and used datatable method to pass values from global sheet successfully !

Code:
Function f(param)
msgbox param
End Function

Call f(datatable("col1",dtglobal))