P
philip
Public Class Form1
Public Structure Identity
Public firstname As String
Public name As String
End Structure
I declared a array of a structure :
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Arr(0 To 3) As Identity
Arr(0).firstname = "zzzzzzz"
Arr(1).firstname = "aaaa"
Arr(2).firstname = "sss"
Arr(3).firstname = "mmmm"
Arr(0).name = "uuuu"
Arr(1).name = "ffff"
Arr(2).name = "zzzz"
Arr(3).name = "aaaa"
End Sub
End Class
Is it possible to sort this one dimensional array by 'firstname' or by
'name' ?
Using array.sort ? But with which arguments ?
Thanks for response.
Philip
Public Structure Identity
Public firstname As String
Public name As String
End Structure
I declared a array of a structure :
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Arr(0 To 3) As Identity
Arr(0).firstname = "zzzzzzz"
Arr(1).firstname = "aaaa"
Arr(2).firstname = "sss"
Arr(3).firstname = "mmmm"
Arr(0).name = "uuuu"
Arr(1).name = "ffff"
Arr(2).name = "zzzz"
Arr(3).name = "aaaa"
End Sub
End Class
Is it possible to sort this one dimensional array by 'firstname' or by
'name' ?
Using array.sort ? But with which arguments ?
Thanks for response.
Philip