I have a function that looks like this:
//function call
setText("Hello World!");
function setText(textToSet)
{
//set this text to the textbox txtBox is the instance of a textbox object
txtData.text = textToSet;
}
The above code is not working. I am getting an error "txtData is not defined"
I am new to programming in Construct 3 but not new to javascript. Feel free to be a technical as necessary in your response / explaination ;) Thanks.