Alpha Video Training
Results 1 to 4 of 4

Thread: Closing Forms

  1. #1
    Member
    Real Name
    Greg Williams
    Join Date
    Sep 2001
    Posts
    321

    Default Closing Forms

    I am sure this is a simple question, but here goes.

    I have a menu with buttons to open different forms. On these forms that open, I placed a button to "Return to Main Menu". They work great, all the forms open, but I guess what I need is a way to close the existing open form before opening the new one. I have found that I have numerous forms open at once. How do I do it. The buttons are running a simple built in function of opening a form.

    Thanks,


    Greg

  2. #2
    "Certified" Alphaholic
    Real Name
    William Hanigsberg
    Join Date
    Apr 2000
    Location
    Toronto, ON
    Posts
    4,018

    Default RE: Closing Forms

    Greg:

    You write "but I guess what I need is a way to close the existing open form before opening the new one" and this is *almost* correct. You want to open your new form first and *then* close the originating form.

    The button code to close the current form is
    parentform.close()
    which you should add to your button's code right after the code which opens the new form so the button code should wind up looking something like

    form.view("your_form_name")
    parentform.close()
    End

    If you are using the genie you will see other stuff there as well but the above is the essence of the matter.

    Bill

  3. #3
    Member
    Real Name
    robert adler
    Join Date
    Apr 2000
    Location
    Boynton Beach, BL
    Posts
    591

    Default RE: Closing Forms

    Greg:
    Normally you put a button on the forms that closes the form and returns to the form that called it. parentform.close()

    I hope this helps.

    bob adler

  4. #4
    Member
    Real Name
    Greg Williams
    Join Date
    Sep 2001
    Posts
    321

    Default RE: Closing Forms

    Thanks everyone. Problem solved. By the way, I just downloaded the WHAT'S NEW in 5.0 and read it over the weekend. Now I know why everyone is impatient for it to be released. Looks like a gem!

    Greg

Similar Threads

  1. Closing Multiple Forms
    By Phil Rolf in forum Alpha Five Version 5
    Replies: 7
    Last Post: 12-04-2002, 06:04 PM
  2. opening/closing forms,etc
    By Daniel Earley in forum Alpha Five Version 5
    Replies: 2
    Last Post: 10-23-2002, 02:31 PM
  3. Closing forms
    By CALocklin in forum Alpha Five Version 5
    Replies: 0
    Last Post: 07-27-2002, 06:30 AM
  4. Closing a series of forms
    By Greg Fong in forum Alpha Five Version 4
    Replies: 14
    Last Post: 08-15-2001, 03:15 PM
  5. Closing forms
    By Lowell Wardlow in forum Alpha Five Version 4
    Replies: 13
    Last Post: 11-15-2000, 03:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •