Visual Basic Help!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Visual Basic Help!

  1. #1
    Join Date
    Sep 2013
    Posts
    2

    Angry Visual Basic Help!

    I need to create a Console Application that can re order any given string into alphabetical order, I have very little code so far but I believe I need to use 'Bubble Sort' at some stage, please help. The code I already have is below.





    Module Module1
    Dim alphabetArray = New String(25) {}
    Dim userstring = New String(5) {}
    Dim userasalpha = New String(userstring.Len) {}

    Sub Main()
    'dragon, is a good example word'

    For intLoop = 1 To 26
    alphabetArray(intLoop, 1) = 'Char'(96 + intLoop)
    Next

    Console.WriteLine("Enter a string of letters, Maximum six... ")
    userstring = Console.ReadLine()




    End Sub




    End Module

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,097

    Re: Visual Basic Help!

    [ Moved ]

  3. #3
    Join Date
    Sep 2013
    Posts
    2

    Re: Visual Basic Help!

    That doesn't help man?

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,997

    Re: Visual Basic Help!

    Click the link in my signature for 101 VB.Net Samples http://code.msdn.microsoft.com/
    Last edited by dglienna; October 3rd, 2013 at 06:33 PM.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,850

    Re: Visual Basic Help!

    clearly you would need to place the source code at the point after you get the user input and before your end sub

    You should also use a more descriptive name for your threads as all questions here are about VB the title doesn't tell us anything
    Always use [code][/code] tags when posting code.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center