Re: ord function

[ Delphi Forum ] [ Delphi Tutorials -- by DelphiLand ]

Posted by webmaster Guido on July 30, 2003 at 12:47:43:

In Reply to: ord function posted by Mujahid on July 24, 2003 at 21:07:51:

: Please can any one help me in sorting or ording the memo items


A TListbox has a property "Sorted", but a TMemo doesn't. So here's a trick for quickly sorting a memo, without having to use some elaborate sorting algorithm:

- assign the memo's lines to an invisible listbox;
- set the listbox property Sorted to true;
- assign the items of the listbox to the memo.

Related Articles and Replies:

[ Delphi Forum ]
[ DelphiLand: free Delphi source code, tips, tutorials ]