SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Check Point Question

    I am testing a C++ windows app. At onepoint I am looping through a tree and opening a Properties dialog for each node. I then do a Check CheckPoint for the ID - which is displayed in the dialog. This seems to work OK, but I need to know the text value of the edit while the test is running. Apparently, <font class="small">Code:</font><hr /><pre>Window("WinName").Dialog("Doc Properties").WinEdit("ID").Check CheckPoint("ID")</pre><hr /> will return a True/False, but I want to get the actual text in the edit. Can this be done?

  2. #2
    Member
    Join Date
    Feb 2002
    Location
    Toledo, Ohio USA
    Posts
    262
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Point Question

    Hi Diesel,

    You would probably have the best luck with GetROProperty or an Output CheckPoint.

    Output Checkpoint -
    While Recording:
    (1) Insert -&gt; Output Value -&gt;Standard Output Value
    (2) Click your "ID" field to identify it as object to get information from
    (3) Select an Ouput value from the Object properties, likely "Value", "Text", or something that has the text value.
    (4) Then within the Checkpoint, you can set the datatable parameter to store the value.

    You can also try Insert -&gt;Output Value -&gt; Text Output Value as well.

    Window("WinName").Dialog("Doc Properties").WinEdit("ID").Output CheckPoint("ID")


    You can also try GetROProperty and store to the datatable, use in another step - or whatever you want. I usually use this as I don't always know how i want to use a value.

    Text = Window("WinName").Dialog("Doc Properties").WinEdit("ID").GetROProperty("value")
    datatable("Text") = Text

    Just my .02. Good luck!

  3. #3
    Member
    Join Date
    Feb 2009
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Check Point Question

    Text = Window("WinName").Dialog("Doc Properties").WinEdit("ID").GetROProperty("text")
    That is what I wanted - thanks

 

 

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 11.54%
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 11:43 AM.

Copyright BetaSoft Inc.