1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VB Script to generate all possible combinations of words for a given set of letters

Discussion in 'Visual Basic ( VB )' started by gopal_787, Feb 5, 2008.

  1. gopal_787

    gopal_787 New Member

    Joined:
    Jan 31, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I am new to the world of VB scripting. I am trying to get some help writing a VB script that generates all possible combinations of words from the letters provided.

    for ex: Input -> {a,b,c}
    expected outpur - > abc
    acb
    bac
    bca
    cab
    cba

    Any help would be great

    Cheers
    Gopal
     
  2. oogabooga

    oogabooga New Member

    Joined:
    Jan 9, 2008
    Messages:
    115
    Likes Received:
    11
    Trophy Points:
    0
  3. gopal_787

    gopal_787 New Member

    Joined:
    Jan 31, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Thanks a lot for that.. The first link that comes up gives a good explanation of it.. served the purpose.. Thanks :)
     

Share This Page