🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #346157

Re: CompareStringEx WinAPI - Problem

#346157
From: J-23
Date: Sun, 05 Nov 2017 23:55
29 lines
1759 bytes
W dniu 05.11.2017 o 20:48, J-23 pisze:

> function compare(List: TStringList; Index1, Index2: integer): integer;
> begin
>    try
>      Result := CompareStringEx(PChar(LOCAL_USER_DEFAULT), 
> SORT_DIGITSASNUMBERS,
>        PChar(List.Strings[Index1]), -1, PChar(List.Strings[Index2]), -1, 
> nil, nil, 0);
>    except
>      ShowMessage(SysErrorMessage(GetLastOSError));
>    end;
> end;
> 
> end.
> 

działa, za stałą podstawić trzeba aktualnie wybrany w systemie kod 
języka dla języka polskiego będzie to wartość 'pl-PL'
LOCAL_USER_DEFAULT = 'pl-PL'

Oriętujecie się może jaką wartość powinna posiadać stała 
SORT_DIGITSASNUMBERS

jest ona dostępna od win7 w górę lecz w MSDN nie mogę znaleść informacji 
jaką ona przyjmuje wartość

Pozdrawiam
J-23
Technical Details
Message-ID: <59ffa4da$0$5147$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <59ff6b1e$0$5160$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: CompareStringEx WinAPI - Problem
Newsgroups: pl.comp.lang.delphi
References: <59ff6b1e$0$5160$65785112@news.neostrada.pl>
From: J-23 <Baczeklu@poczta.fm>
Date: Mon, 6 Nov 2017 00:55:06 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0
MIME-Version: 1.0
In-Reply-To: <59ff6b1e$0$5160$65785112@news.neostrada.pl>
Lines: 29
Message-ID: <59ffa4da$0$5147$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 188.146.165.50
X-Trace: 1509926106 unt-rea-a-01.news.neostrada.pl 5147 188.146.165.50:5377
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit