|
@@ -2221,6 +2221,9 @@ BEGIN
|
|
Search := False; { Preset failure }
|
|
Search := False; { Preset failure }
|
|
L := 0; { Start count }
|
|
L := 0; { Start count }
|
|
H := Count - 1; { End count }
|
|
H := Count - 1; { End count }
|
|
|
|
+ Index := 0;
|
|
|
|
+ if H<=0 then
|
|
|
|
+ exit;
|
|
While (L <= H) Do Begin
|
|
While (L <= H) Do Begin
|
|
I := (L + H) SHR 1; { Mid point }
|
|
I := (L + H) SHR 1; { Mid point }
|
|
C := Compare(KeyOf(Items^[I]), Key); { Compare with key }
|
|
C := Compare(KeyOf(Items^[I]), Key); { Compare with key }
|