Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2006.07.16;
Скачать: [xml.tar.bz2];

Вниз

Bug in TStrList.IndexOfName   Найти похожие ветки 

 
Dodfr   (2005-10-27 11:17) [0]

Hi,

I already sent 3 mails to Vlad about this bug but each update seems not fix it :

You must replace  :

if StrLComp( PChar( LowerCase( ItemPtrs[ i ] ) ), PChar( AName ), L ) = 0 then

With :

if StrLComp( PChar( LowerCase( ItemPtrs[ i ] + fNameDelim) ), PChar( AName ), L ) = 0 then

Or the IndexOfname will always fail.

Also the remark :

     // For optimization, check only list entry that begin with same letter as searched name

Can be removed as the small optimize part seems to have dissapear from source.

In fact, it seems the IndexOfName original code has been retouched by someone else comparing by original I sent to Vlad 8 July 2002 that did not had the bug.


 
SPeller ©   (2005-10-27 12:53) [1]

Hm, I had not problems with this function. But I use it many months ago. Maybe some changes was applied?


 
Dodfr   (2005-10-27 16:55) [2]

I noticed the problem when recompiling an old program that used this function and did not work anymore without the fix.


 
SPeller ©   (2005-10-28 04:53) [3]

O, I am sorry - I mean other function, but I never had problems with this function.



Страницы: 1 вся ветка

Форум: "KOL";
Текущий архив: 2006.07.16;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.008 c
3-1147790931
Popoilyk
2006-05-16 18:48
2006.07.16
Импорт данных в DBGrid


1-1149523008
Valerio
2006-06-05 19:56
2006.07.16
Как правильно описать свойство класса?


2-1151480704
wasserman
2006-06-28 11:45
2006.07.16
Delphi и Proxy


1-1148994038
TSa
2006-05-30 17:00
2006.07.16
запись в ini файл с правами пользоваля


1-1149066270
Laymer
2006-05-31 13:04
2006.07.16
Шаг мышки





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский