Results 1 to 10 of 10

Thread: Why is my variable not printing to my list?

  1. #1

    Join Date
    Feb 2012
    Gender
    Posts
    223
    Thanks
    72
    Thanked 44 Times in 13 Posts


    Downloads
    60
    Uploads
    2
    Mentioned
    27 Post(s)
    Time Online
    1 d 8 h 31 m
    Avg. Time Online
    1 m
    Rep Power
    6

    Why is my variable not printing to my list?

    I use the same format for other tasks just like this in my script, but for some reason, this one is not adding my strEmail to my list, any suggestions? Thank you in advance!

    My Code:




    Page Source

  2. #2
    Banned
    Join Date
    Dec 2011
    Gender
    Location
    Kiwiland
    Posts
    264
    Thanks
    22
    Thanked 106 Times in 68 Posts


    Downloads
    22
    Uploads
    0
    Mentioned
    74 Post(s)
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    List1.additem "Email: " & strEmail

  3. #3

    Join Date
    Feb 2012
    Gender
    Posts
    223
    Thanks
    72
    Thanked 44 Times in 13 Posts


    Downloads
    60
    Uploads
    2
    Mentioned
    27 Post(s)
    Time Online
    1 d 8 h 31 m
    Avg. Time Online
    1 m
    Rep Power
    6
    Thanks, but it still does not show the email :/

  4. #4
    Banned
    Join Date
    Dec 2011
    Gender
    Location
    Kiwiland
    Posts
    264
    Thanks
    22
    Thanked 106 Times in 68 Posts


    Downloads
    22
    Uploads
    0
    Mentioned
    74 Post(s)
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    Ok then something is wrong with your GSB.

    Use.

    strEmail = GetStringBetween(strHTML, "60" & Chr(34) & ">", "")

  5. #5
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14


    Output: size=""30"" maxlength=""60"">

    Try this:



    It is ok to use "+" for string concatenation but in visual basic we use "&" (or some of us use Mid$ )

    The & operator is recommended for string concatenation because it is defined exclusively for strings and reduces your chances of generating an unintended conversion.

  6. #6


    Join Date
    Dec 2011
    Gender
    Posts
    79
    Thanks
    3
    Thanked 32 Times in 22 Posts


    Downloads
    30
    Uploads
    0
    Mentioned
    24 Post(s)
    Time Online
    18 d 20 h 37 m
    Avg. Time Online
    14 m
    Rep Power
    6
    Quote Originally Posted by Zachafer View Post
    (or some of us use Mid$ )
    Why/how would you use Mid$ for concatenation?

  7. #7

    Join Date
    Dec 2011
    Gender
    Posts
    143
    Thanks
    3
    Thanked 161 Times in 44 Posts


    Downloads
    14
    Uploads
    9
    Mentioned
    64 Post(s)
    Time Online
    5 d 21 h 51 m
    Avg. Time Online
    4 m
    Rep Power
    7

  8. #8
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Quote Originally Posted by Hexx View Post
    Why/how would you use Mid$ for concatenation?
    Why: Faster, especially when there are a lot of concatenations.

    How: http://support.microsoft.com/kb/170964/EN-US
    http://pastie.org/pastes/3635100/tex...ftgw1tinkfjf4a

  9. #9
    Reemer's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Iowa
    Age
    25
    Posts
    625
    Thanks
    348
    Thanked 414 Times in 242 Posts


    Downloads
    30
    Uploads
    9
    Mentioned
    200 Post(s)
    Time Online
    2 d 17 h 46 m
    Avg. Time Online
    2 m
    Rep Power
    7
    Damn why did I never think of just removing the quotes -_-
    Thanks man, you probably just saved me lots of time

  10. #10


    Join Date
    Dec 2011
    Gender
    Posts
    79
    Thanks
    3
    Thanked 32 Times in 22 Posts


    Downloads
    30
    Uploads
    0
    Mentioned
    24 Post(s)
    Time Online
    18 d 20 h 37 m
    Avg. Time Online
    14 m
    Rep Power
    6
    Quote Originally Posted by Zachafer View Post
    Why: Faster, especially when there are a lot of concatenations.

    How: http://support.microsoft.com/kb/170964/EN-US
    http://pastie.org/pastes/3635100/tex...ftgw1tinkfjf4a
    how often do you have to actually concatenate strings of 50kb or more though? i can't think of one situation where I've ever had to do that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •