SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Guest

    Declaring variables

    Now that I have the DOM extension working with 5.0.3.1 and set ShowBorderlessTables=1, I have a lot more tables to deal with (more than with VO). What I would like to do is to declare a variable that points to an object in the table. Maybe this can't be done and is bad programming, but I do not like to have things like this:
    <code>
    [-] void SelectQueries()
    [ ] this.HtmlTable1.HtmlColumn1.HtmlTable1.HtmlColumn2 .Queries.Click()
    </code>
    That is a method in one of my window declarations. What I would like is to declare a variable to point to this Queries HtmlImage like this:
    <code>
    HtmlImage Queries1 = this.HtmlTable1.HtmlColumn1.HtmlTable1.HtmlColumn2 .Queries
    </code>

    The problem is in the declaration. HtmlImage is not a type. Any suggestions? Should I just stick to creating these ugly methods?

    Thanks


    ------------------
    Kevin Gehrke
    kgehrke@wiredempire.com
    www.wiredempire.com

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Declaring variables

    Kevin, try:
    window Queries1 = this.HtmlTable1.HtmlColumn1.HtmlTable1.HtmlColumn2 .Queries

    I have declared some other objects like HtmlPushButton this way.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by kgehrke:
    Now that I have the DOM extension working with 5.0.3.1 and set ShowBorderlessTables=1, I have a lot more tables to deal with (more than with VO). What I would like to do is to declare a variable that points to an object in the table. Maybe this can't be done and is bad programming, but I do not like to have things like this:
    <code>
    [-] void SelectQueries()
    [ ] this.HtmlTable1.HtmlColumn1.HtmlTable1.HtmlColumn2 .Queries.Click()
    </code>
    That is a method in one of my window declarations. What I would like is to declare a variable to point to this Queries HtmlImage like this:
    <code>
    HtmlImage Queries1 = this.HtmlTable1.HtmlColumn1.HtmlTable1.HtmlColumn2 .Queries
    </code>

    The problem is in the declaration. HtmlImage is not a type. Any suggestions? Should I just stick to creating these ugly methods?

    Thanks


    <HR></BLOCKQUOTE>


  3. #3
    Guest

    Re: Declaring variables

    Thanks. That worked beautifully.

    ------------------
    Kevin Gehrke
    kgehrke@wiredempire.com
    www.wiredempire.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 10:45 PM.

Copyright BetaSoft Inc.