General information
Category:
Coding, syntax & commands
Hello kurt
It's been a while but...
I now use your approach and add forms like
goApp.NewObject('oFormXXXX','frmClassName')
goApp.oFormXXX.Show()
to close a form i use goapp.oFormxxx.release
When i want a form to close before another one is opened I do it like this.
goapp.oFormXXX.release
goapp.newobject('oFormYYY','frmClassNameYYY')
But when i do this when oFormXXX is based on a frmclass with a grid on it
wich has a controlsource, and oFormYYY doesn't have a grid but textboxes with controlsources, everything gets messed up. When i close oFormXXX manualy by clicking upperright X (queryunload) there's no problem, but when I do it programmatically the oFormYYY doesn't seem to release and oFormXXX seems to need the tables of oFormXXX to instantiate. After oFormYYY is instantiated the table to wich the grid on oFormYYY was bount, for some reason, get selected again.
The result is that when i want to navigate through the data to which the textboxes of oFormYYY are bound I actually navigate through the table to wich the grid on oFormXXX was bound.
I hope this sounds familiar to you and you can help me.
I like this method of creating forms and would like to continue to doing it like this.
Thanks
p.s. the goapp object is public (don't know if this is important)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only