Hey everyone. I would like to know if the following is possible.
I have a User Defined Type. This type has three strings in it. "Name", "Address", "Tel"
I then have an array of this type. The size is how many elements i am retrieving from a file.
What i want to do is pass an array of just the Names to a sub procedure.
Maybe some code will help to explain.
Code:Private Type recordType Name As String Address As String Tel As String End Type Dim custArray() As recordType Private Sub cmdSort_Click() Call sortArray(custArray().Name) End Sub Private Sub sortArray(sortFiled() As String) 'sort the array End Sub
Any help is much appreciated. Thanks in advance
Regards,
Iain.




Reply With Quote