Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

releasing called form

Status
Not open for further replies.

LenaS

Technical User
Nov 28, 2000
98
US
I have a form with a cmd button
click event is :
do form k:\vfp\reinsurance\forms\as710dates
do k:\vfp\reinsurance\progs\as710a

which calls a separate date input form. when dates are entered and okay is pressed
(code behind okay button
Public lbookfrom,lBookto,lbookfromPFI,lBooktoPFI,nCURR
lbookfrom = thisform.txtBookfrom.value
lBookto = thisform.txtBookto.value
lbookfromPFI = thisform.txtBookfromPFI.value
lBooktoPFI = thisform.txtBooktoPFI.value
nCURR = thisform.cboRate.value
Thisform.release()
)

I want the date form to disappear and return to the calling form for execution of the program. The problem is that the program goes on and runs but the date form stays up on the screen.
 
Sounds like you want to hold on the date form until the user is done entering the date, and Then continue with the main form?

Just set the WindowType of the date form to 1 (Modal). That will prevent the user from doing anything except extering the date, and it will also cause the calling form/program to pause until the modal form is hidden/released.

HTH -- michael~
 
I had already tried that with no luck
thanks
 
hmm... maybe your ShowWindow settings are mixed up. If the date form is shown As Top-Level Form, then it won't ever be modal.

-- michael~
 
Changed intial forms showwindow property to 0-inscreen.
when I run the form now it calls the date form but minimizes the calling form, what causes this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top