Inserting variable values into Descriptive Programming Functions - 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: Inserting variable values into Descriptive Programming Functions (/Thread-Inserting-variable-values-into-Descriptive-Programming-Functions) |
Inserting variable values into Descriptive Programming Functions - eske99 - 10-30-2015 Hello All, I'm trying to use a general function in my function library to click links. I used variables to define property values. The values for the link properties are coming from the same row as my Teststeps in the Excel file from columns IP1 and IP2. However, when the clickLink function is called the second time it's still using the previous values ie. not pulling values from current Teststep row. Some columns I could use as identifiers are TSID, Keywords, IP1, IP2 I would really appreciate any help fixing this! Function Library Code: Code: Function clickLink(dData, dData2) Main Code Call from Select/Case: Code: Case "clickLink" Thanks in advance, Scott K. RE: Inserting variable values into Descriptive Programming Functions - supputuri - 11-04-2015 You have to set the Data table row by using "SetCurrentRow" method so that the Row will change from previous to next row then you should be good. Code: 'i - is the row which you want to set Alternatively you can use Code: DataTable.SetNextRow RE: Inserting variable values into Descriptive Programming Functions - vinod123 - 12-18-2015 Code: Dim Rowcount, webrowcnt |