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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot close a response window!!

Status
Not open for further replies.

montjoile

Programmer
May 23, 2011
23
CO
Hi this so simply code is not working, and it's driving me crazy!
When my app starts I open a frame and a response window which is my login. What I want is the user enter the correct login, and then close the window, but I cannot close it. I don't know what am I doing wrong. Even if I open just my login window, this doesn't close.
Here is my code:
//In the open event of my app:
open(w_base)
open(w_login)

//in the ok button to submit the login in the w_login window (which is response):
close(w_login)


So simply but doesn't work. Even if I just open the w_login on the open event of my app, this is not closing! I already put some messageboxes to see what is happening inside, but nothing. when I put:
open(w_base)
open(w_login)
messagebox("test", "close it!!")

in the open event of my app, the messagebox is never shown. What is happening here?
 
From the help file:
Code:
A response window is always opened from within another window (its parent).

Open w_login from w_base and see what happens then.

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top