>> It seems the harder I work the dumber I get. As a newbie to vfp, I'm having a dickens of a time getting the hang of visual/oop.
>> I've created a couple of forms, starting with a LOGIN. When the user clicks on the OK button, the click event does a
THISFORM.RELEASE()
>>DO FORM REPORTS
>>The REPORTS form comes up all right but the LOGIN form is still there hiding underneath. Calling another form puts that one on top of this one.
>> I seem to have missed something very basic here. Is this normal behavior of forms, or as is more likely, am I exhibiting my ignorance again. I can find all kinds of info for opening forms, but almost nothing on closing them. Could someone please help?
>>TIA
>>Pete
>
>Try 'RELEASE Thisform'
Ed,
I've tried every variation of 'RELEASE Thisform' I could find; no soap.
It think that Josh has me on the right track. The books say that I need a return from from a 'DO', which I have now tried. It now looks as though I have a problem with the 'READ EVENTS' line in my 'Main' prg. Wherever I put it, everything seems to stop and leave me with a blank screen. Depending on where I put the 'READ EVENTS' is where everything stops. I feel like such an idiot with this stuff, having to ask for help when the answers are in the books. I just can't seem to glean the meaning out of them. my "Main.prg' looks like this:
DO Setup.PRG
READ EVENTS
DO FORM Login
DO FORM TmpPick
clear events
DO Cleanup.PRG
QUIT
Have I done some really dumb again?
Peter Adams
FoxPro Programmer
Compu-Mail
Heisenberg was probably right...