Put data to Table in KW variable - ReferenceError: Invalid left-hand side in assignment
Hello,
please help. I need put data from script to table in KW variables . I try it with this..
KeywordTests.Test1.Variables.Var1.Mnoz(0) = QUANTITY;
But TestComplete after F5 return this message ReferenceError: Invalid left-hand side in assignment 10:19:27 Normal Error 0,00 0,00
I also try documentation code .. https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/table.html#Creating
but its same problem ..
function TableVarTest()
{
// Create a table variable if it doesn't exist
if(!Project.Variables.VariableExists("MyTable"))
Project.Variables.AddVariable("MyTable", "Table");
// Get a reference to the variable
var t = Project.Variables.VariableByName("MyTable");
// Add columns to the table
t.AddColumn("Name");
t.AddColumn("Age");
t.AddColumn("City");
// Create two rows
t.RowCount = 2;
// Fill in the table
// The first row
t.Name(0) = "John Smith";
t.Age(0) = 24;
t.City(0) = "Seattle";
// The second row (using the Item property)
t.Item("Name", 1) = "Bob Feather";
t.Item("Age", 1) = 59;
t.Item("City", 1) = "Milltown";
}
Please for advice, how put data to table from script to KW table variable.
Thank you