Alpha Video Training
Results 1 to 4 of 4

Thread: Multiple Instances same window

  1. #1
    Member
    Real Name
    Peter Gagiano
    Join Date
    Dec 2004
    Location
    Cape Town South Africa
    Posts
    424

    Default Multiple Instances same window

    How can I prevent the user from opening the same window more than once?

    Thanks,

    Peter.

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default RE: Multiple Instances same window

    The help file says...

    Testing if a Form or Browse is Already Open

    It is often necessary in an Xbasic program to test if a form or browse window is already open. To do this, use the IS_OBJECT() function.

    For example, the following command tests if a form called Customers is already open. If not, it opens the form. If it is open, it gives focus to the form.

    if (is_object(":customers")) then
    'form is open
    :customers.show() 'show the form
    :customers.activate() 'give focus to the form
    :customers.restore() 'restore window size in case
    'user minimized window
    else
    :form.view("customers") 'open the form
    end if

  3. #3
    Member
    Real Name
    Peter Sabourn
    Join Date
    Jul 2004
    Location
    Leeds, UK
    Posts
    105

    Default RE: Multiple Instances same window

    If you are using Action Scripting - Options tab on 'Open Form or Browse Layout' and select 'Switch to the previously opened Form or Browse window'.

  4. #4
    Member
    Real Name
    Peter Gagiano
    Join Date
    Dec 2004
    Location
    Cape Town South Africa
    Posts
    424

    Default RE: Multiple Instances same window

    Many thanks to Peter & Stan for the help


    Peter

Similar Threads

  1. Multiple Browse per window?
    By Les Osborne in forum Alpha Five Version 6
    Replies: 6
    Last Post: 04-28-2005, 03:12 PM
  2. report - multiple instances of records
    By dik_coleman in forum Alpha Five Version 6
    Replies: 2
    Last Post: 01-12-2005, 08:30 AM
  3. Multiple instances of runtime on one PC
    By Frank R in forum Alpha Five Version 5
    Replies: 4
    Last Post: 06-01-2004, 08:54 AM
  4. Two instances of A4v8?
    By Paul H in forum Alpha Four Versions 7 and 8
    Replies: 2
    Last Post: 10-06-2003, 12:32 PM
  5. Multiple instances of Word
    By shaun in forum Alpha Five Version 5
    Replies: 4
    Last Post: 08-06-2002, 08:04 AM

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
  •