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!

Check if another form is open?

Status
Not open for further replies.

soks2626

Programmer
Jul 3, 2002
22
US
Hey there, I was wondering if anyone could help me here... I'm not sure how to check if another form is open/visible. I don't want to do a form.attach statement because then i have to do a form.open statement which actually opens the form. Any suggestions? Thanks.

-Alex
 
This is from the help files.

; getFormNames::pushButton
method pushButton(var eventInfo Event)
var
openForms Array[] String
endVar
enumFormNames(openForms)
openForms.view() ; Lists filenames of open forms.
endMethod

You can always access the array directly to see if a specific form is open (see contains method for details).

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top