Question
Hey guys i really need help with my visual basic capstone project. i started it but its not working so i need someone to help
Hey guys i really need help with my visual basic capstone project. i started it but its not working so i need someone to help me complete it.
please make sure to add a crean shot of your output. please try it to make sure its working.
its called a basic Alphabetizer. its supposed to alphabetize words. Here is my code and form i made. Please add comments to my code
please if you cant make it work dont waste my question . thank you.
Public Class Form1 Private Sub btnSort_Click(sender As Object, e As EventArgs) Handles btnSort.Click Dim Str1, Str2 As String Dim strWords(19) As String Dim Flag1 As Integer For index = 0 To 19 strWords(index) = InputBox("enter some words") lstWords.Items.Add(strWords(index)) Next Do Flag1 = 0 For i = 0 To 19 Str1 = strWords(i) Str2 = strWords(i + 1) If Asc(strWords(i)) > Asc(strWords(i + 1)) Then strWords(i) = Str2 strWords(i + 1) = Str1 Flag1 = 1 End If Next Loop Until Flag1 = 0 For I = 0 To 19 lstWords.Items.Add(strWords(I)) Next End Sub End Class
Please add Comments to code
Form1 Enter Some Text Ist Words Click here to sort wordsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started