Hi,
AS the code you posted, variable "x" is not declared. VFP would create it as private variable. After the line of code x.activate(), is will be destroyed just like other local/private variable since no more other code.
Be in mind that, createobject("form") doesn't work like DO FORM.
Form created by DO FORM will not out of scope unless you put LINKED keyword.
However, form object created and assigned reference to a variable will be following variable life-time rules.
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...