Hello Guys
So lately i tried to write a Sorting algorithm for my ListBoxes, bc i need them to be sorted by Relevance.
So i have like 26 Classes where i call this Sort algorithm but i always have a different Length of my Array. How do i pass a Static array to a Fucntion wich recieves Dynamic Arrays, or do i have to bring Length also as Parameter ?
what i have right now :
//Definitions
SelectedZubehoer = record
Name : String;
Ausgewaelt : Boolean;
ID : Integer;
end;
TSelZub = Array of SelectedZubehoer;
//Call
myGlobalClass.SortZub(SelZub, ZubListe1, ZubListe2);
//Function
Procedure SortZub(SZ : TSelZub; var zubliste1, zubliste2 :
TListBox);
begin
ZubListe1.Clear;
ZubListe2.Clear;
//Sorting
end;
How should i do it ?