Micro Focus QTP (UFT) Forums
adding a colum with variable content - 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: adding a colum with variable content (/Thread-adding-a-colum-with-variable-content)



adding a colum with variable content - innuendo - 11-14-2008

Hi,

I'm currently learning to word with qtp and programming and I have some trouble with the following:

Code:
Aantalregels = Browser("Browser").Page("Page").Frame("main_7").WebTable("Fonds").RowCount
datatable("Aantalregels","Uitvoeren")=Aantalregels

For row=1 to Browser("Browser").Page("Page").Frame("main_7").WebTable("Fonds").RowCount
  
Do  until row=Aantalregels
            Set sheet=datatable.GetSheet("Uitvoeren")
                    sheet.addparameter "test","(Browser("Browser").Page("Page").Frame("main_7").WebTable("Fonds").GetCellData(row,2))",
                    
                    
row=row+1        
datatable("row","Uitvoeren")=row
loop
Next

What I am trying to do is to search a webtable and make a new column for each retrieved row with content and display the content in the newly made column, but I can't get it to work properly, please help??

Thanx!
Dennis.