[VB6] New account info

Discussion in 'Code Snippets and Tutorials' started by the_skip, May 6, 2007.

  1. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Here's the new accoutn info the Chr$(34) is a "

    Code (Visual Basic):
    1. <div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> Accountinfo<span style="color: #66cc66;">(</span>stringToSerach <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color: #66cc66;">)</span></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> </li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><span style="color: #b1b100;">Dim</span> strusername <span style="color: #b1b100;">as</span> <span style="color: #b1b100;">string</span></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><span style="color: #b1b100;">Dim</span> strneopoints <span style="color: #b1b100;">as</span> <span style="color: #b1b100;">string</span></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><span style="color: #b1b100;">Dim</span> strpet <span style="color: #b1b100;">as</span> <span style="color: #b1b100;">string</span></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">strusername = FindString<span style="color: #66cc66;">(</span>stringToSerach, <span style="color: #ff0000;">"/userlookup.phtml?user="</span>, <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">)</span> + <span style="color: #ff0000;">">"</span><span style="color: #66cc66;">)</span></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> </li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">strneopoints = FindString<span style="color: #66cc66;">(</span>stringToSerach, <span style="color: #ff0000;">"</span> NP: <a href="</span> + <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">)</span> + <span style="color: #ff0000;">"/objects.phtml?type=inventory"</span> + <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">)</span> + <span style="color: #ff0000;">">"</span>, <span style="color: #ff0000;">"</a> <span style="</span><span style="color: #66cc66;">)</span></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Strpet = FindString<span style="color: #66cc66;">(</span>stringToSerach, <span style="color: #ff0000;">"/quickref.phtml"</span> & <span style="color: #b1b100;">Chr</span>$<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">)</span> & <span style="color: #ff0000;">"><b>"</span>, <span style="color: #ff0000;">"</b>"</span><span style="color: #66cc66;">)</span></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">&nbsp;</li></ol></div>
    very self explanatory
     
  2. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    Can't you just escape the quotation mark character with a backslash?
     
  3. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    No, that only happens in PHP...
     
  4. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    That and C, C++, C#, Java, Javascript, and SML to name a few more. It is a pretty standard escape sequence, but then again VB has always been funny.