SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: Htmlpopuplist

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Htmlpopuplist

    Hi,

    I'm having an issue with Htmlpopuplist:
    I have the following code:

    integer random_year
    random_year = randInt (2001, 2010)

    BrowserPage.BrowserChild("SO Main").BrowserChild("Credential Profile").HtmlPopupList("? Expiration Date:[3]|#4|$expYearSel").Select(random_year)


    However, I receive an error when using
    Select(random_year). I can use this:
    Select("California") for strings but why
    not for integers?

    Any help is greatly appreciated!

    Thank you!



    ------------------

  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Htmlpopuplist

    There are 3 ways to select items from a popuplist
    1)Index - position of the item in the list.
    obviously must be lesser/equal to number of items in the list.
    2)Exact String - ex : "California"
    3)Index as string - ex : "#3"

    in ur case random_year = 2005 (say)

    I am sure that ur PopUpList does not have 2005 items in the list.

    Regards

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Htmlpopuplist

    Sandeep is correct: you're generating an INTEGER and there's an error when trying to pick, for example, the 2001st item.

    You might want to make a LIST OF STRING of valid STRING choices and choose from that with RandPick. For example:

    I hope this helps.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

 

 

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

Copyright BetaSoft Inc.