SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Moderator
    Join Date
    Mar 2004
    Location
    West Coast of the East Coast!
    Posts
    7,756
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    What\'s wrong with this function?

    st = 0
    Do
    Window("Browser").Button("Back").Click()
    st = CheckExistsWindow("Clarity1", False, "")
    Loop while st = 0
    =================================================
    I want to loop until the window's name is Clarity1

    Thanks
    Personal Comment

    Success is the ability to go from one failure to another with no loss of enthusiasm.
    ~ Winston Churchill ~


    ...Rich Wagner

  2. #2
    Junior Member
    Join Date
    Mar 2007
    Location
    FL
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: What\'s wrong with this function?

    Rich,

    The CheckExistsWindow statement does not return a value so that wouldn't work. If the window isn't found it will issue a warning when you use "False" but doesn't return a value that you can check. It would be good if you could get the window name property but I don't know how you would do that.

    You might want to try the Seapine tech support to see if they have a suggestion on how to handle this. They are pretty good at finding solutions to problems such as yours.

    Evelyn

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: What\'s wrong with this function?

    use waitforcontrol(). it will return a value. I assume your window has at least one control in it.

  4. #4
    Member
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: What\'s wrong with this function?

    WaitForControl is a deprecated function. Try using the syntax below…

    Window("WindowName").WaitForExists(WaitTime)
    G. Ndefru
    Software Support Engineer
    Seapine Software, 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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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:08 AM.

Copyright BetaSoft Inc.