Solved
Forum Discussion
AlexKaras
Champion Level 1
7 years agoHi,
> Im not sure how this Project.Variables.$set function works
https://support.smartbear.com/testcomplete/docs/reference/language/javascript/set-method.html
> If possible please give me some examples
Try this:
function AutoIncrement(variable){
Project.Variables.$set("VariableByName", variable, Project.Variables.$get("VariableByName", variable) + 1);
}