locked
Trying to find where to post for VBScript related questions RRS feed

  • Question

  • What should I use in VBScript to count the # of times a letter appears in a string?
    I've tried:

    dim txt
    txt="This is a beautiful day!"
    document.write(Mid(txt,"i"))
    document.write(Len(txt)) 

    The code didn't even work...please help. Thanks.
    • Edited by antgaudi Thursday, March 19, 2009 6:40 AM didn't add "has code"
    Thursday, March 19, 2009 6:35 AM

Answers

  •  

    Hi, 

     

    Thank you for your post!  I would suggest posting your question in one of the 

    MSDN > Forums Home > Visual Basic > Visual Basic Language

     located here:  http://social.msdn.microsoft.com/Forums/en-US/vblanguage/threads/.

    Have a great day!


    Sudarshan shindode Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by sudarshans1 Thursday, March 19, 2009 7:59 AM
    • Marked as answer by antgaudi Tuesday, April 21, 2009 10:49 AM
    Thursday, March 19, 2009 7:58 AM