Micro Focus QTP (UFT) Forums
Calling a function within a function? Is this possible? - 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: Calling a function within a function? Is this possible? (/Thread-Calling-a-function-within-a-function-Is-this-possible)



Calling a function within a function? Is this possible? - rdwaram - 01-13-2010

Hello,

Thanks in advance for taking time to read this post. I am doing some proof of concept testing before i drill into the actual scenario testing.


For example:
i have a function to set/get a combobox value:

Code:
DropDownList_Set_SelectItem (Window, Object, ItemName)


however my function has two additional values in this function because i need to get the last value name of the dropdown from the datatable column as:

Code:
DropDownList_Set_SelectItem (Window, Object, ItemName, datatable_sheetdestination, dt_columnname)


I would like to know how to split up this function. What would be the best way for me to call a function within to handle ex. get datatable values(datatable_sheetdestination, dt_columnname).

Thanks again,
rd