On Fri, 14 Apr 2006 16:14:49 -0700 (PDT), Prof. Stevan Djuranovic wrote:

>>Store the position in the sequence in the table and use a >lookup field to
>>convert to/from the "displayed" value.
>>--
>>Regards,
>>Allan JM Smith
>>(Northwood, Middlesex, England)
>
>  I thought about that.
>  But what if there are more data begining with same letter? I need to sort 
> them
>  by second letter, third, etc.

You could always encode the string so the correct sequence for the encoded
string is alphabetic ...
VAR     Convert : ARRAY [' '..'~', Boolean] OF CHAR = ('.........', 
'..........');
                X : Char;
// space to ~ are the printable characters from 32 to 126 ... you may want to 
// encode differently. Fill the strings as appropriate

Encode with 
        X := Convert [X, TRUE];
Decode with
        X := Convert [X, FALSE];
--
Regards,
Allan JM Smith
(Northwood, Middlesex, England)


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to