Computer Programming

© Guy Lecky-Thompson

Liberty Basic Sorting Help

  1. jchowell
  2. Guy Lecky-Thompson


Reply   Post   Top
1.   Jun 25, 2007 6:16 AM

» jchowell - Alphabetizing names


I am using Liberty Basic,
I am trying to make a program that will alphabetize three names.
I have started it below

input "Place your 1st name here "; your1stname$
input "Place your 2nd name here "; your2ndname$
input "Place your 3rd name here "; your3rdname$

Can anyone help?
I am new to Programming

-- posted by jchowell

Permalink Print Discussion Print Discussion Email Discussion Email Discussion Suite101: Liberty Basic Sorting Help How to subscribe to feeds

Reply   Post   Top
2.   Jun 29, 2007 5:42 AM

» Feature Writer Guy Lecky-Thompson - Alphabetizing names

In response to Alphabetizing names posted by jchowell:


Hi,

I have a feeling you're not going to like my answer.

My personal belief ::personal:: is that Liberty Basic is not the best place to start programming. However, since you're on that route...

I suggest using the following:

sort arrayName$(), i, j, [,n]

If you want to do this, you'll need to put your names in an array rather than as three string variables.

Best,
Guy

Suite101
Permalink Print Discussion Print Discussion Email Discussion Email Discussion Suite101: Liberty Basic Sorting Help How to subscribe to feeds

Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.