SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2001
    Location
    Darmstadt, Germany
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Variable Window declaration

    Hi All,
    I have a window declaration as follows

    window DialogBox dlgBox
    tag "Test"
    CustomWin Custom1
    msw tag "[Test]Custom1"
    CustomWin Custom2
    msw tag "[test] Custom2"
    ...
    CustomWin Custom16
    msw tag "[test] Custom16"

    I'm looking for somethink like:
    main()
    integer iTemp = 0

    for (iTemp=1; i<=16; i++)
    Verify(dlgBox.Custom{iTemp}.GetColor(), "red")

    I hope my idea is understandable. The above window declaration is only an example.

    If anyone has any idea I would be very glad.

    Bye
    Patrick




    ------------------

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Variable Window declaration

    Patrick,

    try using something like this:

    main()
    integer iTemp = 0

    for (iTemp=1; i<=16; i++)
    Verify(dlgBox.CustomWin("Custom{iTemp}").GetColor( ), "red")

    For this type of thing you are best using dynamic identifiers, where you give the window class followed by a valid tagin brackets.

    Cheers,

    Paul

    ------------------
    Paul Tucker
    Merit AT
    www.merit-at.com

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.69%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:28 AM.

Copyright BetaSoft Inc.