SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Points for Confirmed Friends
    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)
    Total Downloaded
    0

    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
    Points for Confirmed Friends
    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
  •  
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 12.50%
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 09:59 AM.

Copyright BetaSoft Inc.