How to display variables alphabetically

So I am teaching myself visual basic (6.0) and I’m working on a problem I found online and am having trouble with a question, the question is:

“Ask the user for five names and display the names that come first alphabetically.”

My code so far is:

Dim name as string Dim p As integer

For p = 1 to 5 name = Inputbox$(“Enter 5 names.”) Next p…

What shall I do next???

submitted by /u/bigkilla185
[link] [comments]

Leave a Reply