earriaga
10 years agoOccasional Contributor
Code Completion does not display all available variables within the brackets.
Hello,
I am wondering if I am doing something wrong in where code completion won't show all available variables in the within the scope of the brackets. For example:
function LogMsg()
{
var aStrg = "hello world"; // this local variable always shows up on code completion
for(var i = 0; i < 3; i++)
{
Log.Message(aStrg );
var newStrg = "Goodbye";
Log.Message(newStrg) ; // the newStrg variable won't show up on code completion as a option
}
}
The only way I can get the variable 'newStrg' to show up on code completion is to move it to the beginning of the function. Is this how Test Complete expects you to define variables every time?