Dear Helpers
I seem to have hit upon an intractable problem; that is why I am communicating it!
I have been testing real, with some artificial, surnames in a listbox. I know for a fact that the string array that is being listed is sorted correctly. For example, Abzz, Abzza, Austin etc.
When I create the list for display using the correctly sorted CompoundList array >>
for i := 1 to MaxRec do
Form1.ListBox1.Items.Add(MidStr(CompoundList, 1, 36) + MidStr(CompoundList, 42, 5));the displayed list absolutely insists on showing Abzza, Abzz, Austin etc - in other words the zz's are reversed.
It behaves similarly when I insert similar artificial surnames further down the list.
I have noticed that when I delete, say Abzza, I get Abzza, Austin etc. It appears to "know" that Abzza is really Abzz!!
I can only assume that this is a Lazarus bug. Can someone please try to emulate this error.
I don't see at all why it should be happening. Needless to say it is very irritating.
Mike Finch