SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2000
    Location
    Campbell, CA
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Testing two instances of app

    Our people want to be able to have two identical app windows open, client 1 and client 2.
    Each client window contains a child window with an identical list.
    When I update client 1 and then refresh client 2 the change will be reflected in client 2.
    I need to be able to test that this has taken place.
    So far, I cannot since I get the "...is not unique" error message when trying to test either window.
    Any ideas?

  2. #2
    Junior Member
    Join Date
    Oct 1999
    Location
    Denver, CO
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing two instances of app

    There's an ugly way to do this: Create two instances of your MainWin, and append [1] and [2] to the end of each tag, like so:

    The problem with this is that whichever instance of your application is currently active will always be seen as MyApp1. This is actually workable, although not pretty: any time you want to switch instances in your script, just call MyApp2.SetActive(), and then continue making calls to MyApp1. For example:

    I'm sure there's a more clever way to do this, but it requires a little thought. In the meantime, that's a viable workaround. You just have to keep track mentaly of which instance you're dealing with, and always make calls to MyApp1, using MyApp2.SetActive() to switch instances.

    Lawrence Horwitz
    Quark, Inc.
    Lawrence Horwitz
    Automation Team Lead
    Quark, Inc.

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:11 AM.

Copyright BetaSoft Inc.