SPONSORS:






User Tag List

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)

    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)

    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
    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
  •  

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 05:32 PM.

Copyright BetaSoft Inc.