SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Nov 2000
    Location
    NY, NY
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: numeric loop for checking numeric boxes

    Thanks, it's working

  2. #2
    Junior Member
    Join Date
    Nov 2000
    Location
    NY, NY
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    numeric loop for checking numeric boxes

    I have numeric check boxes BrowserPage.HtmlCheckBox ("AAA [1]|#1"), BrowserPage.HtmlCheckBox ("AAA [2]|#2", BrowserPage.HtmlCheckBox ("AAA [3]|#3 and so on
    How could I use numeric loop for checking numeric boxes if following loop doesn't works

    Integer i
    for i =1 to 25
    BrowserPage.HtmlCheckBox("AAA [i]|#[i]").Check ( )

    Silk responds with message Error: Window '[HtmlCheckBox]#[i]' was not found

    Thanks


  3. #3
    Points for Confirmed Friends
    Guest

    Re: numeric loop for checking numeric boxes

    try

    Integer i
    for i =1 to 25
    BrowserPage.HtmlCheckBox("AAA [{i}]|#[{i}]").Check ( )

    Don't know if that will work or not, but when you want the value of a variable (in this case the value of i) to be included in a string you must put the curly braces around it.

    For example:
    i=5
    STRING s = "number i" will equate to "number i" at runtime.

    STRING s = "number {i}" will equate to "number 5" at runtime.

 

 

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 08:50 AM.

Copyright BetaSoft Inc.