Click here to Skip to main content
15,924,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Spell check Pin
ChandraRam15-Dec-06 0:13
ChandraRam15-Dec-06 0:13 
GeneralRe: Spell check Pin
BINOVAR15-Dec-06 0:15
BINOVAR15-Dec-06 0:15 
AnswerRe: Spell check Pin
The ANZAC15-Dec-06 1:28
The ANZAC15-Dec-06 1:28 
GeneralRe: Spell check Pin
BINOVAR15-Dec-06 1:31
BINOVAR15-Dec-06 1:31 
GeneralSorting an array of objects! Pin
portreathbeach14-Dec-06 21:20
portreathbeach14-Dec-06 21:20 
AnswerRe: Sorting an array of objects! Pin
Guffa14-Dec-06 22:09
Guffa14-Dec-06 22:09 
GeneralRe: Sorting an array of objects! Pin
portreathbeach15-Dec-06 7:56
portreathbeach15-Dec-06 7:56 
GeneralRe: Sorting an array of objects! Pin
dhbaer15-Dec-06 8:11
dhbaer15-Dec-06 8:11 
Something like this. Say you want to sort by Artist name.
Make a function:

Function CompareArtist(ByVal Artist1 As String, ByVal Artist2 As String) As Boolean
IF (Artist1>Artist2) Then
Return True
Else
Return False
End IF
End Function

Then when you do your sort, have something like this:

If CompareArtist(mp3file(1).Artist,mp3file(2).Artist) Then
//Do you sorting here depending on the result of the compareartist function.
End If

You could make a seperate comparison function for each member of the object, or just 1 or 2 depending on the type's of the object's members (if they are all strings for example). I hope that makes some sense.

David
GeneralRe: Sorting an array of objects! Pin
portreathbeach15-Dec-06 13:41
portreathbeach15-Dec-06 13:41 
AnswerRe: Sorting an array of objects! Pin
Guffa15-Dec-06 16:23
Guffa15-Dec-06 16:23 
Questionneed help with decimal rounding Pin
vbbeg14-Dec-06 20:58
vbbeg14-Dec-06 20:58 
AnswerRe: need help with decimal rounding Pin
ChandraRam14-Dec-06 21:06
ChandraRam14-Dec-06 21:06 
GeneralRe: need help with decimal rounding Pin
vbbeg14-Dec-06 21:39
vbbeg14-Dec-06 21:39 
GeneralRe: need help with decimal rounding Pin
ChandraRam14-Dec-06 21:42
ChandraRam14-Dec-06 21:42 
GeneralRe: need help with decimal rounding Pin
vbbeg14-Dec-06 21:49
vbbeg14-Dec-06 21:49 
GeneralRe: need help with decimal rounding Pin
ChandraRam14-Dec-06 21:51
ChandraRam14-Dec-06 21:51 
GeneralRe: need help with decimal rounding Pin
vbbeg14-Dec-06 21:57
vbbeg14-Dec-06 21:57 
GeneralRe: need help with decimal rounding Pin
ChandraRam14-Dec-06 21:55
ChandraRam14-Dec-06 21:55 
GeneralRe: need help with decimal rounding Pin
vbbeg14-Dec-06 22:00
vbbeg14-Dec-06 22:00 
GeneralRe: need help with decimal rounding Pin
ChandraRam14-Dec-06 22:28
ChandraRam14-Dec-06 22:28 
QuestionReading Security Event Log Pin
JadsHari14-Dec-06 20:20
JadsHari14-Dec-06 20:20 
AnswerRe: Reading Security Event Log Pin
Dave Kreskowiak15-Dec-06 4:11
mveDave Kreskowiak15-Dec-06 4:11 
GeneralRe: Reading Security Event Log Pin
JadsHari19-Dec-06 15:14
JadsHari19-Dec-06 15:14 
GeneralRe: Reading Security Event Log Pin
Dave Kreskowiak20-Dec-06 3:14
mveDave Kreskowiak20-Dec-06 3:14 
GeneralRe: Reading Security Event Log Pin
JadsHari26-Dec-06 20:42
JadsHari26-Dec-06 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.