Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects not visible
Message
From
17/03/2003 19:33:50
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00719613
Message ID:
00766819
Views:
26
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
Map
View

Click here to load this message in the networking platform