Sorting an array

  • Thread starter Thread starter John Conklin
  • Start date Start date
J

John Conklin

Hello all,

I am trying to help a fellow working with a VB6.NET project and am having
trouble.

The exercise wants us to read some words in English, German and French into
an array from a text file, which I got working fine.

But now it wants us to sort the array by the English words, and I would
assume the German and French equiviliant as well.

I have never sorted in VB6 and was wondering if anyone could tell me how to
accomplish this. If you could provide a sample it would be greatly
appreciated.

Thanks in advance for your help,
John
 
John Conklin said:
I am trying to help a fellow working with a VB6.NET project and am having
trouble.

VB6 or VB.NET?

For VB6, consider posting the question to one of the "microsoft.public.vb.*"
groups.
 
VB6 or VB.NET?

VB.NET

Thanks,
~John

Herfried K. Wagner said:
VB6 or VB.NET?

For VB6, consider posting the question to one of the
"microsoft.public.vb.*" groups.
 
Check out this page: http://www.vb-helper.com/tut1.htm

I'd suggest the selection sort. It is the shortest and easiest to use of the
ones presented.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
John Conklin said:
I am trying to help a fellow working with a VB6.NET project and am having
trouble.
But now it wants us to sort the array by the English words, and I would
assume the German and French equiviliant as well.

I have never sorted in VB6 and was wondering if anyone could tell me how to
accomplish this. If you could provide a sample it would be greatly
appreciated.


See if this will help you get started....
http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vb/msg/8f5187401917dcf8

LFS
 
Ive noticed that google groups is super duper slow, taking about a day to
get replies, so if you post now, dont expect to see your post until
tomorrow, or for that matter, anyones answers to your post.

I just setup my wonderful Outlook Express news thing to the group specified
below, and answers appear instantly.

The array index, isnt the VB6 started at "1" and in the C languages it
starts with "0"?

So Id guess the VB.net also indexes arrays from the 0th operator? To
maintain compatability?
 
Bradley1234 said:
The array index, isnt the VB6 started at "1" and in the C languages it
starts with "0"?

In VB you could use an arbitrary start index.
So Id guess the VB.net also indexes arrays from the 0th operator? To
maintain compatability?

In VB.NET, indices of arrays start with 0. That's mainly for
interoperability (between different .NET programming languages) reasons, at
least according to Microsoft.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top