Jun 5th, 2000, 02:26 AM
I have an app that gets data from a table and places it into a UDT. One member of the UDT is placed in a combo box for the user to choose from. The rest of the UDT members will then be displayed on a form. The problem is that the combo box sorts the one UDT member and then I lose contact with the rest of the members because the listindex value does not correspond with the UDT index or subscript value. I am thinking of two possible solutions: 1) Sort the UDT before a member is sent to the combo box (the sort would be done on the member that is sent). 2) Make a separate call to the data after the user has selected from the combo box.
My question is, which way would be better, safer and faster. The number of records in the database could be in the thousands. If it is the sort, where can I find a good code example of a sort to study.
If you have another suggestion, feel free to share it. I am using VB 6 with SP3.
My question is, which way would be better, safer and faster. The number of records in the database could be in the thousands. If it is the sort, where can I find a good code example of a sort to study.
If you have another suggestion, feel free to share it. I am using VB 6 with SP3.