SPONSORS:






User Tag List

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)

    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)

    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
  •  

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:27 AM.

Copyright BetaSoft Inc.