>I am calling this form from the main.prg (top procedure). I hope you will find a solution to your problem too.
In my case I'm not yet familiar with the project, but I noticed that several forms use lots of public variables - and this messes everything up in addition to too much code called everywhere.
In your case I would also suggest to avoid using public variable just to not be sorry later.
Would local variable work the same way?
Also can you debug (put set step on right before createobject) and see what's going on?
If it's not broken, fix it until it is.
My Blog