SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    capture a value and export it to the excel sheet

    Hi All,

    In the Below text i have to capture only Zip value
    "BENTONIA, MS 39040-0000" some time the text will be " The Plains, MS 30009-0000"

    So Could any one suggest me how can i capture the zip value.

    Here is my code to caputure zip value for the first text.
    inputString=Window("Wnd").Page("Pge").WebElement(" lbl_Header_address").GetROProperty("innertext")
    Msgbox inputString
    C2 = Split(inputString," ")
    sZipHeader=Split(C2(2),"-")
    Msgbox sZipHeader(0)

    Thanks in Advance,

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    Bloomington, IL
    Posts
    300
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: capture a value and export it to the excel sheet

    To capture the zip value use the split function.
    strMyText=" The Plains, MS 30009-0000"

    MyArray=Split(strMyText," ")
    ZipValue=MyArray(ubound(MyArray))
    'Your zipValue contains "30009-0000"

    Did it answered your question?

    Thanks,
    Ashok

  3. #3
    Junior Member
    Join Date
    Feb 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: capture a value and export it to the excel sheet

    Thank you. It worked me.

    Can you explain exactly what this step do
    ZipValue=MyArray(ubound(MyArray))

  4. #4
    Junior Member
    Join Date
    Feb 2008
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: capture a value and export it to the excel sheet

    I got it.

    Thank you

 

 

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.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 12:08 PM.

Copyright BetaSoft Inc.