Forum Discussion
21 Replies
- AlexKarasChampion Level 3
Hi,
Exact syntax depends on the scripting language of test project.
- visalinirContributor
Hi Alex,
I have attached the code used in my test project, please find the attachment.
In the code, Worksheet refers to my Table Variable Name, WSName refers my Column Name in a table and here TempVar is a variable of type integer which refers to RowCount in a Table.
Is my code correct?
- AlexKarasChampion Level 3
Hi,
> Is my code correct?
Assuming that the variable is named 'Worksheet' and the column is named 'WSName' the code looks to be correct.
The only thing is the value of TempVar. Rows in the table variables are counted starting from zero. Thus the range of accessible rows is from zero to RowCount-1.If you need to add more rows you must first set the value to Rows property (not tested sample):
Project.Variables.VariableByName("Worksheet").Rows = <new number of rows>
Does your code fail? What is posted to the test log?